Part Number Hot Search : 
47510 XP01216 LVC1G1 109225 L78MXXAC LTC38 B13NK60 IDT74F
Product Description
Full Text Search
 

To Download KSZ8862-32MQL-SX Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  ksz8862-16/32mql 2-port ethernet switch with non-pci interface and fiber support rev 3.0 linkmd is a registered trademark of micrel, inc. micrel inc. ? 2180 fortune drive ? san jose, ca 95131 ? usa ? te l +1 (408) 944-0800 ? fax + 1 (408) 474-1000 ? http://www.micre l.com april 2007 m9999-040407-3.0 general description the ksz8862m is 2-port switch with non-pci cpu interface and fiber support, and is available in 8/16-bit and 32-bit bus designs (see ordering information). this datasheet describes the ksz8862m non-pci cpu interface chip. the ksz8862m is the industry?s first fully managed, 2- port switch with a non-pci cpu interface and fiber support. it is based on a proven, 4 th generation, integrated layer-2 switch, compliant with ieee 802.3u standards. for industrial applications, the ksz8862m can run in half-duplex mode regardless of the application. in fiber mode, port 1 can be configurable to either 100base-fx or 100base-sx/10base-fl. the led driver and post amplifier are also included for 10base-fl and 100base-sx applications. linkmd ? in copper mode, port 2 su pports 10/100base-t/tx with hp auto mdi/mdi-x for reliable detection of and correction for straight-thr ough and crossover cables. micrel?s proprietary linkmd ? time domain reflectometry (tdr)-based function is also available for determining the cable length, as well as cable diagnostics for identifying faulty cabling. the ksz8862m offers an extensive feature set that includes tag/port-based vlan, quality of service (qos) priority management, management information base (mib) counters, and cpu control/data interfaces to effectively address fast ethernet applications. the ksz8862m contains: two 10/100 transceivers with patented, mixed-signal, low- power technology, two media access control (mac) units, a direct memory access (dma) channel, a high-speed, non-blocking, switch fabric, a dedicated 1k entry forwarding table, and an on-chip frame buffer memory. functional diagram port 1 fiber port 2 copper e m b e d d e d p r o c e s s o r i n t e r f a c e 1k look-up engine scheduling managem ent b u ffer managem ent fram e buffers fifo, flow control, vlan tagging ,priority 10/100 mac 1 10/100 mac 2 switch host mac 10/100 base- t/tx phy 2 eeprom in te rfa c e led drivers mib counters p1 led[3:0] p2 led[3:0] eeprom i/f non-pci cpu bus in te rfa c e unit qmu dma channel control registers rxq 4kb 8,16, or 32-bit generic host interface txq 4kb 10/100 base- fl/fx/sx phy 1 led driver post amp tx rx figure 1. ksz8862m functional diagram
micrel, inc. ksz8862-16/32mql april 2007 2 m9999-040407-3.0 features switch management ? non-blocking switch fabric assures fast packet delivery by utilizing a 1k en try forwarding table and a store-and-forward architecture ? fully compliant with ieee 802.3u standards ? full-duplex ieee 802.3x fl ow control (pause) with force mode option ? half-duplex back pressure flow control advanced switch management ? ieee 802.1q vlan support for up to 16 groups (full range of vlan ids) ? vlan id tag/untag options, on a per port basis ? ieee 802.1p/q tag insertion or removal on a per port basis (egress) ? programmable rate limiting at the ingress and egress ports ? broadcast storm protection ? ieee 802.1d spanning tr ee protocol support ? mac filtering function to filter or forward unknown unicast packets ? direct forwarding mode enabling the processor to identify the ingress port and to specify the egress port ? internet group management protocol (igmp) v1/v2 snooping support for multicast packet filtering ? ipv6 multicast listener discovery (mld) snooping support fiber support ? integrated led driver and post amplifier for 10base- fl and 100base-sx optical modules ? 100base-fx/sx and 10base-fl fiber support on port 1 monitoring ? port mirroring/monitoring/sniffing: ingress and/or egress traffic to any port ? mib counters for fully compliant statistics gathering ? 34 mib counters per port ? loopback modes for remote failure diagnostics comprehensive register access ? control registers configurable on-the-fly (port-priority, 802.1p/d/q) qos/cos packets prioritization support ? per port, 802.1p and diffserv-based ? remapping of 802.1p priority field on a per port basis power modes, packaging, and power supplies ? full-chip hardware power-down (register configuration not saved) allows low power dissipation ? per port-based, software power-save on phy (idle link detection, register c onfiguration preserved) ? single power supply: 3.3v ? commercial temperature range: 0 o c to +70 o c ? industrial temperature range: ?40 o c to +85 o c (see ordering information). ? available in 128-pin pqfp ? available in ?16 version for 8/16-bit bus support and ? 32 version for 32-bit bus support (see ordering information). additional features in addition to offering all of the features of an integrated layer-2 managed switch, the ksz8862m offers: ? dynamic buffer memory scheme ? essential for applications such as video over ip where image jitter is unacceptable ? 2-port switch with a flexible 8, 16, or 32-bit generic host processor interfaces ? micrel linkmd ? cable diagnostics to determine cable length, diagnose faulty cables, and determine distance-to-fault ? hewlett packard (hp) au to-mdix crossover with disable and enable options ? four priority queues to handle voice, video, data, and control packets ? ability to transmit and receiv e jumbo frame sizes up to 1916 bytes applications ? video distribution systems ? high-end cable, satellite, and ip set-top boxes ? video over ip ? voice over ip (voip) and analog telephone adapters (ata) ? industrial control in latency critical applications ? motion control ? industrial control sensor devices (temperature, pressure, levels, and valves) ? security and surv eillance cameras markets ? fast ethernet ? embedded ethernet ? industrial ethernet
micrel, inc. ksz8862-16/32mql april 2007 3 m9999-040407-3.0 ordering information part number temperature range package comment ksz8862-16mql-fx 0 o c to 70 o c 128-pin pqfp port 1 operates on 100base-fx mode only ksz8862-16mql-sx 0 o c to 70 o c 128-pin pqfp port 1 operates on 100base-sx mode only ksz8862-16mql-fl 0 o c to 70 o c 128-pin pqfp port 1 operates on 10base-fl mode only ksz8862-32mql-fx 0 o c to 70 o c 128-pin pqfp port 1 operates on 100base-fx mode only KSZ8862-32MQL-SX 0 o c to 70 o c 128-pin pqfp port 1 operates on 100base-sx mode only ksz8862-32mql-fl 0 o c to 70 o c 128-pin pqfp port 1 operates on 10base-fl mode only ksz8862-100fx-eval evaluation board for the ksz8862-16mql at 100fx mode ksz8862-10fl-eval evaluation board for the ksz8862-16mql at 100sx_10fl mode revision history revision date summary of changes 1.0 07/18/06 first released information 2.0 09/13/06 added evaluation ordering info. to ordering information table 3.0 04/04/07 updated part ordering info. to ordering information table improve the ardy low time in read cycle to 40ns and in write cycle to 50 ns during qmu data register access
micrel, inc. ksz8862-16/32mql april 2007 4 m9999-040407-3.0 content general desc ription ............................................................................................................ ................................................1 functional diagram............................................................................................................. ................................................1 featur es ....................................................................................................................... ........................................................2 switch ma nagem ent .............................................................................................................. ...........................................2 advanced switch manage ment ..................................................................................................... ...................................2 fiber su pport .................................................................................................................. ..................................................2 monito ring ..................................................................................................................... ....................................................2 qos/cos packets prio ritization support ......................................................................................... .................................2 power modes, packaging, and power supplies..................................................................................... ..........................2 additional features............................................................................................................ ...............................................2 applicat ions................................................................................................................... ......................................................2 markets........................................................................................................................ .........................................................2 ordering info rmation ........................................................................................................... ...............................................3 revision hi story............................................................................................................... ...................................................3 pin configuration for ks z8862-16mql (8/16-bit) ................................................................................. .........................11 pin description for ksz8 862-16mql (8 /16-bit) ................................................................................... ...........................12 pin configuration for ks z8862-32mql (32-bit) ................................................................................... ..........................17 pin description for ks z8862-32 mql (32-bit) .................................................................................... ............................18 functional d escription ......................................................................................................... ............................................23 functional overview: physi cal layer tr ansceiver ................................................................................ ........................23 100base-tx tr ansmit ............................................................................................................ .......................................23 100base-tx re ceive ............................................................................................................. .......................................23 scrambler/de-scrambl er (100base- tx only) ....................................................................................... .........................23 100base-fx o peration........................................................................................................... .......................................23 100base-fx signal detection .................................................................................................... ...................................23 100base-fx far-end-f ault (fef) ................................................................................................. ................................24 100base-sx oper ation ........................................................................................................... ......................................24 physical interface ............................................................................................................. ..........................................24 enabling 100 base-sx m ode ....................................................................................................... ..............................24 enabling fiber forced mode ..................................................................................................... .................................24 10base-fl o peration ............................................................................................................ ........................................24 physical interface ............................................................................................................. ..........................................24 enabling 10b ase-fl mode........................................................................................................ ................................24 enabling fiber forced mode ..................................................................................................... .................................24 10base-t tr ansmit.............................................................................................................. ..........................................25 10base-t re ceive............................................................................................................... ..........................................25 led driver ..................................................................................................................... .................................................25 post amp lifier................................................................................................................. .................................................25 power m anagem ent............................................................................................................... .........................................25 mdi/mdi-x auto crossover ....................................................................................................... .....................................25 straight cable ................................................................................................................. ............................................26 crossover cable................................................................................................................ .........................................26 auto negot iation ............................................................................................................... ..............................................27 linkmd ? cable diagnostics............................................................................................................. ...............................28 access ......................................................................................................................... ...............................................28 usage .......................................................................................................................... ...............................................28 functional overview : mac and switch ............................................................................................ ..............................29 address lookup................................................................................................................. .............................................29 learni ng ....................................................................................................................... ...................................................29 migration ...................................................................................................................... ...................................................29
micrel, inc. ksz8862-16/32mql april 2007 5 m9999-040407-3.0 aging.......................................................................................................................... .....................................................29 forwar ding ..................................................................................................................... .................................................30 switching engine ............................................................................................................... .............................................32 mac operation .................................................................................................................. .............................................32 inter packet gap (i pg) ......................................................................................................... ..........................................32 back-off al gorithm............................................................................................................. .............................................32 late colli sion ................................................................................................................. .................................................32 legal packet size .............................................................................................................. .............................................32 flow c ontrol................................................................................................................... .................................................32 half-duplex ba ckpressure ....................................................................................................... .......................................32 broadcast stor m protection..................................................................................................... .......................................33 clock generator................................................................................................................ ..............................................33 bus interface unit (biu)....................................................................................................... .............................................33 asynchronous interface ......................................................................................................... .........................................35 synchronous interface.......................................................................................................... ..........................................36 summary........................................................................................................................ .................................................36 biu implementati on principles.................................................................................................. ......................................37 queue management unit (qmu) .................................................................................................... ..................................38 transmit queue (t xq) frame format .............................................................................................. .............................38 receive queue (rxq ) frame format............................................................................................... .............................39 advanced swit ch funct ions ...................................................................................................... ......................................41 spanning tree suppo rt.......................................................................................................... .........................................41 igmp s upport ................................................................................................................... ..............................................42 ?igmp? snoopi ng................................................................................................................ ........................................42 ?multicast address insertion? in the static mac table .......................................................................... .....................42 ipv6 mld snooping.............................................................................................................. ..........................................42 port mirror ing support ......................................................................................................... ...........................................42 ieee 802.1q vl an support....................................................................................................... ....................................43 qos priority suppo rt........................................................................................................... ............................................43 port-based priority............................................................................................................ ..............................................43 802.1p-based priori ty .......................................................................................................... ...........................................43 diffserv-bas ed prio rity ........................................................................................................ ...........................................44 rate limiti ng suppo rt .......................................................................................................... ...........................................44 mac filteri ng function ......................................................................................................... ..........................................45 configuration interf ace ........................................................................................................ ...........................................45 eeprom inte rface ............................................................................................................... ..........................................45 loopback su pport............................................................................................................... ............................................46 far-end l oopback ............................................................................................................... .......................................46 near-end (remot e) loopb ack ..................................................................................................... ...............................46 cpu interface i/o registers .................................................................................................... .........................................48 i/o registers .................................................................................................................. .................................................48 internal i/o space m apping ..................................................................................................... .......................................49 register map: swit ch and mac/phy............................................................................................... ................................57 bit type de finition............................................................................................................ ...............................................57 bank 0-63 bank select register (0x0e) : bsr (same location in all banks) ........................................................ ..........57 bank 0 base address re gister (0x00): bar ....................................................................................... ...........................57 bank 0 qmu rx flow control high watermark configuration register (0x04): qrfcr..............................................57 bank 0 bus error status register (0x06): besr.................................................................................. ..........................58 bank 0 bus burst length register (0 x08): bblr.................................................................................. .........................58 bank 1 re served ................................................................................................................ ............................................58 bank 2 host mac address re gister low (0 x00): marl .............................................................................. .................58 bank 2 host mac address re gister middle (0x02): marm ........................................................................... ...............59 bank 2 host mac address re gister high (0 x04): marh ............................................................................. .................59 bank 3 on-chip bus contro l register (0 x00): obcr ............................................................................... .....................59 bank 3 eeprom control r egister (0x02): eepcr ................................................................................... ....................60
micrel, inc. ksz8862-16/32mql april 2007 6 m9999-040407-3.0 bank 3 memory bist info register (0 x04): mbir .................................................................................. .....................60 bank 3 global reset r egister (0x06): grr ....................................................................................... ............................60 bank 3 bus configuration register (0 x08): bcfg ................................................................................. ........................61 banks 4 ? 15: reserved ......................................................................................................... ........................................61 bank 16 transmit control register (0 x00): txcr ................................................................................. ........................61 bank 16 transmit status register (0 x02): txsr .................................................................................. .........................61 bank 16 receive control register (0 x04): rxcr .................................................................................. ........................62 bank 16 txq memory informati on register (0 x08): txmir .......................................................................... ................62 bank 16 rxq memory informati on register (0 x0a): rxmir.......................................................................... ...............63 bank 17 txq command regi ster (0x00): txqcr ..................................................................................... ...................63 bank 17 rxq command regi ster (0x02): rxqcr ..................................................................................... ..................63 bank 17 tx frame data pointe r register (0 x04): txfdpr .......................................................................... ................63 bank 17 rx frame data pointe r register (0 x06): rxfdpr .......................................................................... ...............64 bank 17 qmu data regist er low (0x0 8): qdrl ..................................................................................... ......................64 bank 17 qmu data regist er high (0x0 a): qdrh .................................................................................... .....................64 bank 18 interrupt enable register (0 x00): ier .................................................................................. ............................65 bank 18 interrupt status register (0x02): isr .................................................................................. .............................66 bank 18 receive status register (0x04): rxsr................................................................................... .........................67 bank 18 receive byte counter register (0 x06): rxbc............................................................................. ....................67 bank 19 multicast table r egister 0 (0 x00): mtr0................................................................................ .........................68 bank 19 multicast table r egister 1 (0 x02): mtr1................................................................................ .........................68 bank 19 multicast table r egister 2 (0 x04): mtr2................................................................................ .........................68 bank 19 multicast table r egister 3 (0 x06): mtr3................................................................................ .........................68 banks 20 ? 31 : reserved ........................................................................................................ .......................................68 bank 32 switch id and enabl e register (0 x00): si der ............................................................................ ....................69 bank 32 switch global contro l register 1 (0 x02): sgcr1......................................................................... ...................69 bank 32 switch global contro l register 2 (0 x04): sgcr2......................................................................... ...................70 bank 32 switch global contro l register 3 (0 x06): sgcr3......................................................................... ...................71 bank 32 switch global contro l register 4 (0 x08): sgcr4......................................................................... ...................71 bank 32 switch global contro l register 5 (0 x0a): sgcr5 ......................................................................... ..................72 bank 33 switch global contro l register 6 (0 x00): sgcr6......................................................................... ...................73 bank 33 switch global contro l register 7 (0 x02): sgcr7......................................................................... ...................73 banks 34 ? 38 : reserved ........................................................................................................ .......................................73 bank 39 mac address regi ster 1 (0x0 0): macar1 .................................................................................. ...................74 bank 39 mac address regi ster 2 (0x0 2): macar2 .................................................................................. ...................74 bank 39 mac address regi ster 3 (0x0 4): macar3 .................................................................................. ...................74 bank 40 tos priority control register 1 (0 x00): tosr1 .......................................................................... ....................74 bank 40 tos priority control register 2 (0 x02): tosr2 .......................................................................... ....................75 bank 40 tos priority control register 3 (0 x04): tosr3 .......................................................................... ....................75 bank 40 tos priority control register 4 (0 x06): tosr4 .......................................................................... ....................76 bank 40 tos priority control register 5 (0 x08): tosr5 .......................................................................... ....................76 bank 40 tos priority control register 6 (0 x0a): tosr6 .......................................................................... ....................77 bank 41 tos priority control register 7 (0 x00): tosr7 .......................................................................... ....................77 bank 41 tos priority control register 8 (0 x02): tosr8 .......................................................................... ....................78 bank 42 indirect access cont rol register (0x00): iacr .......................................................................... ......................78 bank 42 indirect access data register 1 (0x02): iadr1 .......................................................................... .....................79 bank 42 indirect access data register 2 (0x04): iadr2 .......................................................................... .....................79 bank 42 indirect access data register 3 (0x06): iadr3 .......................................................................... .....................79 bank 42 indirect access data register 4 (0x08): iadr4 .......................................................................... .....................79 bank 42 indirect access data register 5 (0 x0a): iadr5.......................................................................... .....................79 bank 43: reserv ed .............................................................................................................. ...........................................79 bank 44 digital testing stat us register (0x00): dtsr........................................................................... .......................80 bank 44 analog test ing status regist er (0x02) : atsr............................................................................ .....................80 bank 44 digital testing cont rol register (0x04): dtcr .......................................................................... ......................80 bank 44 analog testin g control register 0 (0x06): atcr0 ........................................................................ ..................80 bank 44 analog testin g control register 1 (0x08): atcr1 ........................................................................ ..................80 bank 44 analog testin g control register 2 (0x0a): atcr2........................................................................ ..................80 bank 45 phy 1 mii-register basic control register (0x00): p1mbcr ............................................................... ..........80
micrel, inc. ksz8862-16/32mql april 2007 7 m9999-040407-3.0 bank 45 phy 1 mii-register basic status register (0x02): p1mbsr................................................................ ...........82 bank 45 phy 1 phyid low re gister (0x04) : phy1ilr............................................................................... ..................82 bank 45 phy 1 phyid high r egister (0x06) : phy1ihr .............................................................................. .................82 bank 45 phy 1 auto-negotiation advert isement register (0x08): p1anar........................................................... ......83 bank 45 phy 1 auto-negotiation link part ner ability register (0x0a): p1 anlpr ................................................... ....83 bank 46 phy 2 mii-register basic control register (0x00): p2mbcr ............................................................... ..........84 bank 46 phy 2 mii-register basic status register (0x02): p2mbsr................................................................ ...........85 bank 46 phy 2 phyid low re gister (0x04) : phy2ilr............................................................................... ..................85 bank 46 phy 2 phyid high r egister (0x06) : phy2ihr .............................................................................. .................85 bank 46 phy 2 auto-negotiation advert isement register (0x08): p2anar........................................................... ......86 bank 46 phy 2 auto-negotiation link part ner ability register (0x0a): p2 anlpr ................................................... ....86 bank 47 phy1 special control/stat us register (0x0 2): p1phyctrl ................................................................. .........87 bank 47 phy2 linkmd ? control/status (0x04): p2vct ................................................................................................87 bank 47 phy2 special control/stat us register (0x0 6): p2phyctrl ................................................................. .........88 bank 48 port 1 control re gister 1 (0x0 0): p1cr1................................................................................ .........................88 bank 48 port 1 control re gister 2 (0x0 2): p1cr2................................................................................ .........................89 bank 48 port 1 vid control register (0x 04): p1vidcr............................................................................ .....................90 bank 48 port 1 control re gister 3 (0x0 6): p1cr3................................................................................ .........................90 bank 48 port 1 ingress rate c ontrol register (0x08): p1ircr.................................................................... .................91 bank 48 port 1 egress rate cont rol register (0 x0a): p1ercr..................................................................... ...............93 bank 49 port 1 phy special control/status, linkmd ? (0x00): p1 scslmd ..................................................................95 bank 49 port 1 control re gister 4 (0x0 2): p1cr4................................................................................ .........................95 bank 49 port 1 status register (0 x04): p1sr.................................................................................... ............................96 bank 50 port 2 control re gister 1 (0x0 0): p2cr1................................................................................ .........................97 bank 50 port 2 control re gister 2 (0x0 2): p2cr2................................................................................ .........................97 bank 50 port 2 vid control register (0x 04): p2vidcr............................................................................ .....................97 bank 50 port 2 control re gister 3 (0x0 6): p2cr3................................................................................ .........................97 bank 50 port 2 ingress rate c ontrol register (0x08): p2ircr.................................................................... .................97 bank 50 port 2 egress rate cont rol register (0 x0a): p2ercr..................................................................... ...............97 bank 51 port 2 phy special control/status, linkmd ? (0x00): p2 scslmd ..................................................................98 bank 51 port 2 control re gister 4 (0x0 2): p2cr4................................................................................ .........................99 bank 51 port 2 status register (0 x04): p2sr.................................................................................... ..........................100 bank 52 host port control register 1 (0 x00): p3cr1 ............................................................................. ....................101 bank 52 host port control register 2 (0 x02): p3cr2 ............................................................................. ....................101 bank 52 host port vid contro l register (0x 04): p3vidcr ......................................................................... ................102 bank 52 host port control register 3 (0 x06): p3cr3 ............................................................................. ....................102 bank 52 host port ingress rate control register (0x08): p3ircr ................................................................. ............102 bank 52 host port egress rate control register (0x0a): p3ercr .................................................................. ..........102 banks 53 ? 63 : reserved ........................................................................................................ .....................................102 mib (management inform ation base) counters..................................................................................... ......................103 format of ?all ports dr opped packet? mi b counters .............................................................................. .....................104 additional mib informat ion..................................................................................................... .......................................105 static mac a ddress table ....................................................................................................... ......................................106 static mac table lookup exam ples: .............................................................................................. .............................106 dynamic mac ad dress ta ble ...................................................................................................... ..................................107 dynamic mac address lookup example:............................................................................................ ........................107 vlan table ..................................................................................................................... .................................................108 vlan table look up examples:.................................................................................................... ................................108 absolute maximum ratings (1) ............................................................................................................................... .........109 operating ratings (1) ............................................................................................................................... .........................109 electrical characteristics (1) ............................................................................................................................... .............110 timing speci ficati ons .......................................................................................................... ...........................................111 asynchronous timing without usin g address stro be (adsn = 0) .................................................................... ...........111 asynchronous timing using address str obe (ads n) ................................................................................ .................112 asynchronous timing using datacsn.............................................................................................. .........................113
micrel, inc. ksz8862-16/32mql april 2007 8 m9999-040407-3.0 address latching timi ng for a ll modes .......................................................................................... ..............................114 synchronous timing in bu rst write (v lbusn = 1) ................................................................................. .....................115 synchronous timing in bu rst read (vlbusn = 1) .................................................................................. ....................116 synchronous write ti ming (vlbusn = 0).......................................................................................... ..........................117 synchronous read ti ming (vlbusn = 0) ........................................................................................... ........................118 eeprom ti ming .................................................................................................................. ........................................119 auto negotia tion ti ming ........................................................................................................ .......................................120 reset timing................................................................................................................... ..............................................121 selection of isolat ion transf ormers............................................................................................ ..................................122 selection of refe rence crystal ................................................................................................. .....................................122 package info rmation............................................................................................................ ...........................................123 acronyms a nd glo ssary.......................................................................................................... .......................................124
micrel, inc. ksz8862-16/32mql april 2007 9 m9999-040407-3.0 list of figures figure 1. ksz8862m functional diagram ......................................................................................... ...................................................... 1 figure 2. 12 8-pin pqfp ......................................................................................................... ................................................................ 11 figure 3. 12 8-pin pqfp ......................................................................................................... ................................................................ 17 figure 4. typical stra ight cable c onnection ................................................................................... ...................................................... 26 figure 5. typical crosso ver cable co nnection ................................................................................... ................................................... 26 figure 6. auto negotiation and parallel operation .............................................................................. ................................................... 27 figure 7. destination address lookup flow char t in stag e one .................................................................. ........................................ 30 figure 8. destination address resolution flow chart in st age two .............................................................. ....................................... 31 figure 9. mapping from isa-like, eisa-like, and vlbus-like transactions to the ksz 8862m bus ................................... ...................... 36 figure 10. ksz8862m 8-bit, 16-bit, and 32-bit data bus connections............................................................ ..................................... 37 figure 11. 802.1p priori ty field format ........................................................................................ .......................................................... 44 figure 12. port 2 far-end loopb ack path ....................................................................................... ...................................................... 47 figure 13. port 1 and port 2 n ear-end (remote) loopback path.................................................................. ........................................ 47 figure 14. asynchronous cycle ? ad sn = 0...................................................................................... ................................................. 111 figure 15. asynchronous cycle ? us ing adsn.................................................................................... ............................................... 112 figure 16. asynchronous cycle ? usi ng data csn ................................................................................. .......................................... 113 figure 17. address latch ing cycle fo r all modes............................................................................... ................................................. 114 figure 18. synchronous burst write cycles ? vlbusn = 1........................................................................ ........................................ 115 figure 19. synchronous burst read cycles ? vlbusn = 1 ......................................................................... ...................................... 116 figure 20. synchronous wr ite cycle ? vlbusn = 0............................................................................... ............................................ 117 figure 21. synchronous re ad cycle ? vlbusn = 0................................................................................ ........................................... 118 figure 22. eeprom read cycle timi ng diagr am ................................................................................... ........................................... 119 figure 23. auto-n egotiation timing............................................................................................ ......................................................... 120 figure 24. re set ti ming ....................................................................................................... ............................................................... 121 figure 25. 128-pin pqfp package ............................................................................................... ...................................................... 123
micrel, inc. ksz8862-16/32mql april 2007 10 m9999-040407-3.0 list of tables table 1. mdi/mdi- x pin defi nitions............................................................................................ ........................................................... 25 table 2. bus interface unit signal grouping ................................................................................... ...................................................... 35 table 3. transmit queue frame format .......................................................................................... ..................................................... 38 table 4. transmit cont rol word bi t fields..................................................................................... ........................................................ 38 table 5. transmit byte count format ........................................................................................... ........................................................ 39 table 6. receive queue frame format ........................................................................................... ..................................................... 39 table 7. frxq pa cket receiv e status ........................................................................................... ...................................................... 40 table 8. frxq rx byte count field ............................................................................................. ........................................................ 40 table 9. spanni ng tree states................................................................................................. ............................................................. 41 table 10. fid+da look up in vl an mode.......................................................................................... ................................................... 43 table 11. fid+sa look up in vlan mode .......................................................................................... ................................................... 43 table 12. eepr om format....................................................................................................... ............................................................ 45 table 13. configparam word in eeprom format ................................................................................... ............................................ 46 table 14. format of pe r port mib counters ...................................................................................... ................................................... 103 table 15. port 1 mib counter s indirect me mory offset ........................................................................... ............................................. 104 table 16. ?all ports dropped pa cket? mib count ers fo rmat ....................................................................... ......................................... 104 table 17. ?all ports dropped packet? mib counters indirect memory offsets ...................................................... ............................... 104 table 18. static mac t able format (8 entries)................................................................................. .................................................. 106 table 19. dynamic mac addre ss table format (1024 entr ies)..................................................................... ..................................... 107 table 20. vlan table format (16 entries) ....................................................................................... ................................................... 108 table 21. maxi mum rati ngs..................................................................................................... ........................................................... 109 table 22. oper ating ra tings................................................................................................... ............................................................. 109 table 23. electrical characteristics .......................................................................................... ........................................................... 110 table 24. asynchronous cycle (adsn = 0) tim ing parame ters ..................................................................... .................................... 111 table 25. asynchronous cycle using adsn timi ng parame ters ..................................................................... ................................... 112 table 26. asynchronous cycle us ing datacsn timi ng parame ters .................................................................. ............................... 113 table 27. address latch ing timing pa rameters.................................................................................. ................................................ 114 table 28. synchronous burst write timing parame ters........................................................................... ........................................... 115 table 29. synchronous bu rst read timing parame ters ............................................................................ ......................................... 116 table 30. synchronous write (v lbusn = 0) timi ng parame ters .................................................................... ................................... 117 table 31. synchronous read (v lbusn = 0) tim ing parame ters ..................................................................... .................................. 118 table 32. eeprom timing para meters............................................................................................ .................................................. 119 table 33. auto negotia tion timing parameters.................................................................................. ................................................. 120 table 34. reset timing para meters ............................................................................................. ....................................................... 121 table 35. transformer selection criteria...................................................................................... ....................................................... 122 table 36. qualified single port magnet ic ...................................................................................... ...................................................... 122 table 37. typical referenc e crystal char acteristics........................................................................... ................................................ 122
micrel, inc. ksz8862-16/32mql april 2007 11 m9999-040407-3.0 pin configuration for ksz8862-16mql (8/16-bit) figure 2. 128-pin pqfp (top view)
micrel, inc. ksz8862-16/32mql april 2007 12 m9999-040407-3.0 pin description for ksz8862-16mql (8/16-bit) pin number pin name type pin function 1 test_en i test enable for normal operation, 1k ohm pull-down this pin to ground. 2 scan_en i scan test scan mux enable for normal operation, 1k ohm pull-down this pin to ground. 3 p1led2 opu 4 p1led1 opu 5 p1led0 opu 6 p2led2 opu 7 p2led1 opu 8 p2led0 opu port 1 and port 2 led indicators 1 defined as follows: switch global control register 5: sgcr5 bit [15,9] [0,0] default [0,1] p1led3 2 /p2led3 ? ? p1led2/p2led2 link/act 100link/act p1led1/p2led1 full duplex/col 10link/act p1led0/p2led0 speed full duplex reg. sgcr5 bit [15,9] [1,0] [1,1] p1led3 2 /p2led3 act ? p1led2/p2led2 link ? p1led1/p2led1 full duplex/col ? p1led0/p2led0 speed ? notes: 1. link = on; activity = blink; link/act = on/blink; full dup/col = on/blink; full duplex = on (full duplex); off (half duplex) speed = on (100base-t); off (10base-t) 2. p1led3 is pin 27. p2led3 is pin 22. 9 dgnd gnd digital ground 10 vddio p 3.3v digital v ddio input power supply for io with well decoupling capacitors. 11 rdyrtnn ipd ready return not: for vlbus-like mode: asserted by the host to complete synchronous read cycles. if the host doesn?t connect to this pin, assert this pin. for burst mode (32-bit interface only): ho st drives this pin low to signal waiting states. 12 bclk ipd bus interface clock local bus clock for synchronous bus systems. maximum frequency is 50mhz. this pin should be tied low or unconnected if it is in asynchronous mode. 13 nc ipu no connect. 14 nc opu no connect. 15 srdyn opu synchronous ready not ready signal to interface with synchronous bus for both eisa-like and vlbus-like extended accesses. for vlbus-like mode, the falling edge of t his signal indicates ready. this signal is synchronous to the bus clock signal bclk. for burst mode (32-bit interface only), t he ksz8862m drives this pin low to signal wait states. 16 intrn opd interrupt
micrel, inc. ksz8862-16/32mql april 2007 13 m9999-040407-3.0 pin number pin name type pin function active low signal to host cpu to indicate an interrupt status bit is set, this pin need an external 4.7k pull-up resistor. 17 ldevn opd local device not active low output signal, asserted when aen is low and a15-a4 decode to the ksz8862m address programmed into the high byte of the base address register. ldevn is a combinational decode of the address and aen signal. 18 rdn ipd read strobe not asynchronous read strobe, active low. 19 eecs opu eeprom chip select 20 ardy opd asynchronous ready ardy may be used when interfacing asynchronous buses to extend bus access cycles. it is asynchronous to the host cpu or bus clock. this pin needs an external 4.7k pull-up resistor. 21 cyclen ipd cycle not for vlbus-like mode cycle signal; this pin follows the addressing cycle to signal the command cycle. for burst mode (32-bit interface only), this pin stays high for read cycles and low for write cycles. 22 p2led3 opd port 2 led indicator see the description in pins 6, 7, and 8. 23 dgnd gnd digital io ground 24 vddco p 1.2v digital core volt age output (internal 1.2v ldo power supply output), this 1.2v output pin provides power to vddc, vdda and vddap pins. note: internally generated power voltage. do not connect an external power supply to this pin. this pin is used for connecting external filter (ferrite bead and capacitors). 25 vlbusn ipd vlbus-like mode pull-down or float: bus interface is configured for synchronous mode. pull-up: bus interface is configured for 8- bit or 16-bit asynchronous mode or eisa- like burst mode. 26 eeen ipd eeprom enable eeprom is enabled and connected when this pin is pull-up. eeprom is disabled when this pin is pull-down or no connect. 27 p1led3 opd port 1 led indicator. s ee the description in pins 3, 4, and 5. 28 eedo opd eeprom data out this pin is connected to di input of the serial eeprom. 29 eesk opd eeprom serial clock a 4 s serial output clock to load configur ation data from the serial eeprom. 30 eedi ipd eeprom data in this pin is connected to do output of the serial eeprom when eeen is pull-up. this pin can be pull-down for 8-bit bus mode, pull-up for 16-bus mode or don?t care for 32-bus mode when eeen is pull-down (without eeprom). 31 swr ipd synchronous write/read write/read signal for synchronous bus accesses. write cycles when high and read cycles when low. 32 aen ipu address enable address qualifier for the address decoding, active low. 33 wrn ipd write strobe not
micrel, inc. ksz8862-16/32mql april 2007 14 m9999-040407-3.0 pin number pin name type pin function asynchronous write strobe, active low. 34 dgnd gnd digital io ground 35 adsn ipd address strobe not for systems that require address latching, the rising edge of adsn indicates the latching moment of a15-a1 and aen. 36 pwrdn ipu full-chip power-down. low = power down; high or floating = normal operation. 37 agnd gnd analog ground 38 vdda p 1.2v analog v dd input power supply from vddco (pin24) through external ferrite bead and capacitor. 39 agnd gnd analog ground 40 nc ? no connect 41 100fx/10fl ipu fiber mode select for port 1. 1k ohm pull-up to 3.3v for 100base-fx, 100 ohm pull- down to gnd for 100base-sx or 10base-fl. 42 agnd gnd analog ground 43 vdda p 1.2v analog v dd input power supply from vddco (pin24) through external ferrite bead and capacitor. 44 fxsd1 i fiber signal detect input for port 1 in 100base-fx fiber mode. 1k ohm pull-up to 3.3v for port 1 in 100base-sx or 10base-fl fiber modes. 45 rxp1 i/o port 1 physical receive (mdi) signal (+ differential) from external fiber module 46 rxm1 i/o port 1 physical receive (mdi) signal (? differential) from external fiber module 47 agnd gnd analog ground 48 txp1 i/o port 1 physical transmit (mdi) signa l (+ differential) to external fiber module 49 txm1 i/o port 1 physical transmit (mdi) signal (? differential) to external fiber module 50 vddatx p 3.3v analog v dd input power supply with well decoupling capacitors. 51 vddarx p 3.3v analog v dd input power supply with well decoupling capacitors. 52 rxm2 i/o port 2 physical receive (mdi) or transmit (mdix) signal (- differential) 53 rxp2 i/o port 2 physical receive (mdi) or transmit (mdix) signal (+ differential) 54 agnd gnd analog ground 55 txm2 i/o port 2 physical receive (mdi) or transmit (mdix) signal (- differential) 56 txp2 i/o port 2 physical receive (mdi) or transmit (mdix) signal (+ differential) 57 vdda p 1.2 analog v dd input power supply from vddco (pin24) through external ferrite bead and capacitor. 58 agnd gnd analog ground 59 nc ipu no connect 60 nc ipu no connect 61 iset o set physical transmits output current. pull-down this pin with a 3.01k 1% resistor to ground. 62 agnd gnd analog ground 63 vddap p 1.2v analog v dd for pll input power supply from vddco (pin24) through external ferrite bead and capacitor. 64 agnd gnd analog ground 65 x1 i 25mhz crystal or oscillator clock connection.
micrel, inc. ksz8862-16/32mql april 2007 15 m9999-040407-3.0 pin number pin name type pin function 66 x2 o pins (x1, x2) connect to a crystal. if an os cillator is used, x1 connects to a 3.3v tolerant oscillator and x2 is a no connect. note: clock requirement is  50ppm for either crystal or oscillator. 67 rstn ipu hardware reset pin (active low). this rese t input is required minimum of 10ms low after stable supply voltage 3.3v. 68 a15 i address 15 69 a14 i address 14 70 a13 i address 13 71 a12 i address 12 72 a11 i address 11 73 a10 i address 10 74 a9 i address 9 75 a8 i address 8 76 a7 i address 7 77 a6 i address 6 78 dgnd gnd digital io ground 79 vddio p 3.3v digital v ddio input power supply for io with well decoupling capacitors. 80 a5 i address 5 81 a4 i address 4 82 a3 i address 3 83 a2 i address 2 84 a1 i address 1 85 nc i no connect 86 nc i no connect 87 be1n i byte enable 1 not, active low for data byte 1 enable (don?t care in 8-bit bus mode). 88 be0n i byte enable 0 not, active low for data byte 0 enable (there is an internal inverter enabled and connected to the be1n for 8-bit bus mode). 89 nc i no connect 90 dgnd gnd digital core ground 91 vddc p 1.2v digital core v dd input power supply from vddco (pin24) through external ferrite bead and capacitor. 92 vddio p 3.3v digital v ddio input power supply for io with well decoupling capacitors. 93 nc i no connect 94 nc i no connect 95 nc i no connect 96 nc i no connect 97 nc i no connect 98 nc i no connect 99 nc i no connect 100 nc i no connect 101 nc i no connect 102 nc i no connect 103 nc i no connect 104 nc i no connect
micrel, inc. ksz8862-16/32mql april 2007 16 m9999-040407-3.0 pin number pin name type pin function 105 nc i no connect 106 nc i no connect 107 dgnd gnd digital io ground 108 vddio p 3.3v digital v ddio input power supply for io with well decoupling capacitors. 109 nc i no connect 110 d15 i/o data 15 111 d14 i/o data 14 112 d13 i/o data 13 113 d12 i/o data 12 114 d11 i/o data 11 115 d10 i/o data 10 116 d9 i/o data 9 117 d8 i/o data 8 118 d7 i/o data 7 119 d6 i/o data 6 120 d5 i/o data 5 121 d4 i/o data 4 122 d3 i/o data 3 123 dgnd gnd digital io ground 124 dgnd gnd digital core ground 125 vddio p 3.3v digital v ddio input power supply for io with well decoupling capacitors. 126 d2 i/o data 2 127 d1 i/o data 1 128 d0 i/o data 0 legend: p = power supply gnd = ground i/o = bi-directional i = input o = output ipd = input with internal pull-down ipu = input with internal pull-up opd = output with internal pull-down opu = output with internal pull-up
micrel, inc. ksz8862-16/32mql april 2007 17 m9999-040407-3.0 pin configuration for ksz8862-32mql (32-bit) figure 3. 128-pin pqfp (top view)
micrel, inc. ksz8862-16/32mql april 2007 18 m9999-040407-3.0 pin description for ksz8862-32 mql (32-bit) pin number pin name type pin function 1 test_en i test enable for normal operation, 1k ohm pull-down this pin-to-ground. 2 scan_en i scan test scan mux enable for normal operation, 1k ohm pull-down this pin-to-ground. 3 p1led2 opu 4 p1led1 opu 5 p1led0 opu 6 p2led2 opu 7 p2led1 opu 8 p2led0 opu port 1 and port 2 led indicators 1 defined as follows: switch global control register 5: sgcr5 bit [15,9] [0,0] default [0,1] p1led3 2 /p2led3 ? ? p1led2/p2led2 link/act 100link/act p1led1/p2led1 full duplex/col 10link/act p1led0/p2led0 speed full duplex reg. sgcr5 bit [15,9] [1,0] [1,1] p1led3 2 /p2led3 act ? p1led2/p2led2 link ? p1led1/p2led1 full duplex/col ? p1led0/p2led0 speed ? notes: 1. link = on; activity = blink; link/act = on/blink; full dup/col = on/blink; full duplex = on (full duplex); off (half duplex) speed = on (100base-t); off (10base-t) 2. p1led3 is pin 27. p2led3 is pin 22. 9 dgnd gnd digital ground 10 vddio p 3.3v digital v ddio input power supply for io with well decoupling capacitors. 11 rdyrtnn ipd ready return not for vlbus-like mode: asserted by the host to complete synchronous read cycles. if the host doesn?t connect to this pin, assert this pin. for burst mode (32-bit interface only): host drives this pin low to signal waiting states. 12 bclk ipd bus interface clock local bus clock for synchronous bus systems. maximum frequency is 50mhz. this pin should be tied low or unconnected if it is in asynchronous mode. 13 datacsn ipu data chip select not (for ksz8862-32 mode only) chip select signal for qmu data r egister (qdrh, qdrl), active low. when datacsn is low, the data path can be accessed regardless of the value of aen, a15-a1, and the content of the bank select register. 14 nc opu no connect. 15 srdyn opu synchronous ready not ready signal to interface with synchronous bus for both eisa-like and vlbus-like extend accesses. for vlbus-like mode, the falling edge of this signal indicates ready. this signal is synchronous to the bus clock signal bclk. for burst mode (32-bit interface only), the ksz8862m drives this pin low to signal wait states. 16 intrn opd interrupt
micrel, inc. ksz8862-16/32mql april 2007 19 m9999-040407-3.0 pin number pin name type pin function active low signal to host cpu to indicate an int errupt status bit is set, this pin need an external 4.7k pull-up resistor. 17 ldevn opd local device not active low output signal, asserted when aen is low and a15-a4 decode to the ksz8862m address programmed into the high byte of the base address register. ldevn is a combinational decode of the address and aen signal. 18 rdn ipd read strobe not asynchronous read strobe, active low. 19 eecs opu eeprom chip select 20 ardy opd asynchronous ready ardy may be used when interfacing asynchronous buses to extend bus access cycles. it is asynchronous to the host cpu or bus cl ock. this pin needs an external 4.7k pull-up resistor. 21 cyclen ipd cycle not for vlbus-like mode cycle signal; this pin follows the addressing cycle to signal the command cycle. for burst mode (32-bit interface only), this pin stays high for read cycles and low for write cycles. 22 p2led3 opd port 2 led indicator. see the des cription in pins 6, 7, and 8. 23 dgnd gnd digital io ground 24 vddco p 1.2v digital core voltage output (internal 1.2v ldo power supply output), this 1.2v output pin provides power to vddc, vdda and vddap pins. note: internally generated power voltage. do not connect an external power supply to this pin. this pin is used for connecting extern al filter (ferrite bead and capacitors). 25 vlbusn ipd vlbus-like mode pull-down or float: bus interface is configured for synchronous mode. pull-up: bus interface is configured for 32- bit asynchronous mode or eisa-like burst mode. 26 eeen ipd eeprom enable eeprom is enabled and connected when this pin is pull-up. eeprom is disabled when this pin is pull-down or no connect. 27 p1led3 opd port 1 led indicator see the description in pins 3, 4, and 5. 28 eedo opd eeprom data out this pin is connected to di input of the serial eeprom. 29 eesk opd eeprom serial clock a 4 s serial output clock to load configur ation data from the serial eeprom. 30 eedi ipd eeprom data in this pin is connected to do output of the serial eeprom when eeen is pull-up. this pin can be pulled-down for 8-bit bus mode, pulled-up for 16-bus mode or either way for 32-bus mode when eeen is pulled-down (without eeprom). 31 swr ipd synchronous write/read write/read signal for synchronous bus accesses. write cycles when high and read cycles when low. 32 aen ipu address enable address qualifier for the address decoding, active low. 33 wrn ipd write strobe not asynchronous write strobe, active low. 34 dgnd gnd digital io ground
micrel, inc. ksz8862-16/32mql april 2007 20 m9999-040407-3.0 pin number pin name type pin function 35 adsn ipd address strobe not for systems that require address latching, the rising edge of adsn indicates the latching moment of a15-a1 and aen. 36 pwrdn ipu full-chip power-down. low = power down; high or floating = normal operation. 37 agnd gnd analog ground 38 vdda p 1.2v analog v dd input power supply from vddco (pin24) through external ferrite bead and capacitor. 39 agnd gnd analog ground 40 nc ? no connect 41 100fx/10f l ipu fiber mode select for port 1. 1k ohm pull-up to 3.3v for 100base-fx, 100 ohm pull-down to gnd for 100base-sx or 10base-fl. 42 agnd gnd analog ground 43 vdda p 1.2v analog v dd input power supply from vddco (pin24) through external ferrite bead and capacitor. 44 fxsd1 i fiber signal detect input for port 1 in 100base-fx fiber mode. 1k ohm pull-up to 3.3v for port 1 in 100base-sx or 10base-fl fiber modes. 45 rxp1 i/o port 1 physical receive (mdi) signal (+ differential) from external fiber module 46 rxm1 i/o port 1 physical receive (mdi) signal (? differential) from external fiber module 47 agnd gnd analog ground 48 txp1 i/o port 1 physical transmit (mdi) signa l (+ differential) to external fiber module 49 txm1 i/o port 1 physical transmit (mdi) signal (? differential) to external fiber module 50 vddatx p 3.3v analog v dd input power supply with well decoupling capacitors. 51 vddarx p 3.3v analog v dd 52 rxm2 i/o port 2 physical receive (mdi) or transmit (mdix) signal (- differential) 53 rxp2 i/o port 2 physical receive (mdi) or transmit (mdix) signal (+ differential) 54 agnd gnd analog ground 55 txm2 i/o port 2 physical receive (mdi) or transmit (mdix) signal (- differential) 56 txp2 i/o port 2 physical receive (mdi) or transmit (mdix) signal (+ differential) 57 vdda p 1.2 analog v dd input power supply from vddco (pin24) through external ferrite bead and capacitor. 58 agnd gnd analog ground 59 nc ipu no connect 60 nc ipu no connect 61 iset o set physical transmits output current. pull-down this pin with a 3.01k 1% resistor to ground. 62 agnd gnd analog ground 63 vddap p 1.2v analog v dd for pll input power supply from vddco (pin24) through external ferrite bead and capacitor. 64 agnd gnd analog ground 65 x1 i 66 x2 o 25mhz crystal or oscillator clock connection. pins (x1, x2) connect to a crystal. if an oscill ator is used, x1 connects to a 3.3v tolerant oscillator and x2 is a no connect. note: clock is  50ppm for either crystal or oscillator. 67 rstn ipu hardware reset pin (active low). this reset i nput is required minimum of 10ms low after stable supply voltage 3.3v. 68 a15 i address 15
micrel, inc. ksz8862-16/32mql april 2007 21 m9999-040407-3.0 pin number pin name type pin function 69 a14 i address 14 70 a13 i address 13 71 a12 i address 12 72 a11 i address 11 73 a10 i address 10 74 a9 i address 9 75 a8 i address 8 76 a7 i address 7 77 a6 i address 6 78 dgnd gnd digital io ground 79 vddio p 3.3v digital v ddio input power supply for io with well decoupling capacitors. 80 a5 i address 5 81 a4 i address 4 82 a3 i address 3 83 a2 i address 2 84 a1 i address 1 85 be3n i byte enable 3 not, active low for data byte 3 enable. 86 be2n i byte enable 2 not, active low for data byte 2 enable. 87 be1n i byte enable 1 not, active low for data byte 1 enable. 88 be0n i byte enable 0 not, active low for data byte 0 enable. 89 d31 i/o data 31 90 dgnd gnd digital core ground 91 vddc p 1.2v digital core v dd input power supply from vddco (pin24) through external ferrite bead and capacitor. 92 vddio p 3.3v digital v ddio input power supply for io with well decoupling capacitors. 93 d30 i/o data 30 94 d29 i/o data 29 95 d28 i/o data 28 96 d27 i/o data 27 97 d26 i/o data 26 98 d25 i/o data 25 99 d24 i/o data 24 100 d23 i/o data 23 101 d22 i/o data 22 102 d21 i/o data 21 103 d20 i/o data 20 104 d19 i/o data 19 105 d18 i/o data 18 106 d17 i/o data 17 107 dgnd gnd digital io ground 108 vddio p 3.3v digital v ddio input power supply for io with well decoupling capacitors. 109 d16 i/o data 16 110 d15 i/o data 15
micrel, inc. ksz8862-16/32mql april 2007 22 m9999-040407-3.0 pin number pin name type pin function 111 d14 i/o data 14 112 d13 i/o data 13 113 d12 i/o data 12 114 d11 i/o data 11 115 d10 i/o data 10 116 d9 i/o data 9 117 d8 i/o data 8 118 d7 i/o data 7 119 d6 i/o data 6 120 d5 i/o data 5 121 d4 i/o data 4 122 d3 i/o data 3 123 dgnd gnd digital io ground 124 dgnd gnd digital core ground 125 vddio p 3.3v digital v ddio input power supply for io with well decoupling capacitors. 126 d2 i/o data 2 127 d1 i/o data 1 128 d0 i/o data 0 legend: p = power supply gnd = ground i/o = bi-directional i = input o = output ipd = input with internal pull-down ipu = input with internal pull-up opd = output with internal pull-down opu = output with internal pull-up
micrel, inc. ksz8862-16/32mql april 2007 23 m9999-040407-3.0 functional description the ksz8862m contains two 10/100 physical layer transceiv ers (phys), two mac units, and a dma channel integrated with a layer-2 switch. the ksz8862m contains a bus interface unit (biu), which cont rols the ksz8862m via an 8, 16, or 32-bit host interface. physical signal transmission and reception are enhanced through the use of analog circuits in the phy that make the design more efficient and allow for low power consumption. functional overview: phys ical layer transceiver 100base-tx transmit the 100base-tx transmit function (port 2 only) performs parallel -to-serial conversion, 4b/5b coding, scrambling, nrz-to- nrzi conversion, and mlt3 encoding and transmission. the circuitry starts with a parallel-to-ser ial conversion, which converts the mii data from the mac into a 125mhz serial bit stream. the data and control stream is then converted into 4b/5 b coding, followed by a scrambler. the serialized data is further converted from nrz-to-nrzi format, and then transmi tted in mlt3 current output. the output current is set by an external1% 3.01k ? resistor for the 1:1 transformer ratio. the output signal has a typical rise/fall time of 4ns and co mplies with the ansi tp-pmd standard regarding amplitude balance, overshoot, and timing jitter. the wave-shaped 10 base-t output is also incorp orated into the 100base-tx transmitter. 100base-tx receive the 100base-tx receiver function (port 2 only) performs adaptive equalization, dc re storation, mlt3-to-nrzi conversion, data and clock recovery, nrzi-to-nrz conversion, de-scrambling, 4b/5b decoding, and serial-to- parallel conversion. the receiving side begins with the equalizati on filter to compensate for inter-symbol interference (isi) ov er the twisted pair cable. since the amplitude loss and p hase distortion is a function of the cabl e length, the equalizer must adjust its characteristics to optimize performance. in this design, the variable equalizer makes an initial estimation based upon comparisons of incoming signal strength agai nst some known cable characteristics, and then tunes itself for optimization. this is an ongoing process and self-adjusts against envir onmental changes such as temperature variations. next, the equalized signal goes through a dc restoration and dat a conversion block. the dc re storation circuit is used to compensate for the effect of baseline wander and to improve the dynamic range. the differential data conversion circuit converts the mlt3 format back to nrzi. the slicing threshold is also adaptive. the clock recovery circuit extracts the 1 25mhz clock from the edges of the nrzi signal. this recovered clock is then used to convert the nrzi signal into the nrz format. this si gnal is sent through the de-sc rambler followed by the 4b/5b decoder. finally, the nrz serial data is converted to the mii format and prov ided as the input data to the mac. scrambler/de-scrambler (100base-tx only) the purpose of the scrambler is to spread the power spectr um of the signal to reduce electromagnetic interference (emi) and baseline wander. transmitted data is scrambled through the use of an 11-bit wide linear feedback shift register (lfsr). the scrambler generates a 2047- bit non-repetitive sequence, and the rece iver then de-scrambles the incoming data stream using the same seq uence as at the transmitter. 100base-fx operation 100base-fx operation is supporte d on port 1 and similar to 100base-tx operati on with the differences being that the scrambler/descrambler and mlt3 encoder/decoder are bypa ssed on transmission and reception. in addition, auto- negotiation is bypassed and aut o mdi/mdi-x is disabled. 100base-fx signal detection in 100base-fx operation, fxsd1 (fiber signal detect), input pin 44, is usually connect ed to the fiber transceiver sd (signal detect) output pin. 100base-fx mode is activated when the fxsd1 input pin is greater than 1v. when fxsd1 is between 1v and 1.8v, no fiber signal is detected and a fa r-end fault (fef) is generated. when fxsd1 is over 2.2v, the fiber signal is detected. alternatively, the designer may choose not to implement t he fef feature. in this case, the fxsd1 input pin is tied high to force 100base-fx mode.
micrel, inc. ksz8862-16/32mql april 2007 24 m9999-040407-3.0 the 100base-fx signal detection is summarized as below: when fxsd1 input voltage is less t han 0.2v, this is not a fiber mode or there is no fiber connection. when fxsd1 input voltage is greater than 1.0v but less than 1.8v, this is a fx mode but no signal detected and far-end fault generated. when fxsd1 input voltage is greater than 2.2v , this is a fx mode with signal detected. to ensure proper operation, a resistive voltage divider is re commended to adjust the fiber transceiver sd output voltage swing to match the fxsd1 pin?s input voltage threshold. 100base-fx far-end-fault (fef) a far-end-fault (fef) occurs when the signal detection is l ogically false on the receive side of the fiber transceiver. the ksz8862m detects a fef when its fxsd1 input on port 1 is between 1v and 1.8v. when a fef is detected, the ksz8862m signals its fiber link partner that a fef has occurred by sending 84 1?s follo wed by a zero in the idle period between frames. by default, fef is enabled. fef can be disabled through re gister setting at p1mbcr (bit2) or p1cr4 (bit12). 100base-sx operation 100base-sx operation is support ed on port 1 only. it conforms to the tia/eia-785 standard for 100base-sx fiber operation. fiber link negotiation pulse (flnp) bursts are used to adver tise link capabilities to the link partner during fiber auto-negotiation. flnp bu rsts are equivalent to the fast link pu lse (flp) bursts used in 10base-t and 100base-tx auto-negotiation defined by clause 28 of the ieee802.3 standard. refer to respective standard for details. physical interface for 100base-sx operation, port 1 in terfaces with an external fiber module to drive 850nm fiber optic links up to a maximum distance of 300m. the interface connections between the ksz8862m and fiber module are single-ended (common mode). 100base-sx signal transmission and reception are done on txm1 (pin 49) and rxm1 (pin 46), respectively. refer to micrel reference schematic for recommended interface circuit and termination. enabling 100base-sx mode to enable 100base-sx mode, tie fxsd1 (pin 44) to high (+3.3v) and 100fx/10fl (pin 41)-to-ground. enabling fiber forced mode in 100base-sx mode, the ksz8862m supports forced mode only. for forced mode, port 1 has auto-negotiation disabled, is forc ed to 100mbps for the speed, and is set to either half or full duplex. optionally, flow control can be enabled to send out pause frames in full duplex mode. forced mode and auto-negotia tion disabled mode settings for 100base-sx fiber use the same registers (p1mbcr, p1cr4). these registers are summarize d in the register map section. 10base-fl operation 10base-fl operation is supporte d on port 1 only. it conforms to clause 15 and 18 of the ieee802.3 standard for 10base-fl fiber operation. fiber link negotiation pulse (flnp) bursts are us ed to advertise link capabilities to the link partner during fiber auto-negotia tion. flnp bursts are equival ent to the fast link pulse (flp) bursts used in 10base-t and 100base-tx auto-negotiation defined by clause 28 of the ieee 802.3 standard. refer to re spective standard for details. physical interface for 10base-fl operation, port 1 interfaces with an ex ternal fiber module to drive 85 0nm fiber optic links up to a maximum distance of 2km. the interface connections between the ksz8862m and fiber module are single-ended (common mode). 10base-fl signal transmiss ion and reception are d one on txm1 (pin 49) and rxm1 (pin 46), respectively. refer to micrel reference schematic for recommended interface circuit and termination. enabling 10base-fl mode to enable 10base-fl mode, tie fxsd1 (pin 44) to high (+3.3v) and 100fx/10fl (pin 41)-to-ground. enabling fiber forced mode in 10base-fl mode, the ksz8862m supports forced mode only. for forced mode, port 1 has auto-negotiation disabled, is forced to 10mbps for the speed, and is set to either half or full duplex. optionally, flow control can be enabled to send out pause frames in full duplex mode.
micrel, inc. ksz8862-16/32mql april 2007 25 m9999-040407-3.0 forced mode and auto-negotiation disabled mode settings fo r 10base-fl fiber use the sa me registers (p1mbcr, p1cr4). these registers are summarize d in the register map section. 10base-t transmit the 10base-t driver (port 2 only) is incorporated with the 100b ase-tx driver to allow for transmission using the same magnetic. they are internally wave-shaped and pre-emphasized into outputs with typically 2.3v amplitude. the harmonic contents are at least 27db below the fundamental frequency when driven by an all-ones manchester-encoded signal. 10base-t receive on the receive side (port 2 only), input buffers and level detecting squelch circuits are employed. a differential input receiver circuit and a phase-locked loop (pll) perform the decoding function. t he manchester-encoded data stream is separated into clock signal and nrz data. a squelch circuit reject s signals with levels less than 400mv or with short pulse widths to prevent noise at t he rxp-or-rxm input from falsely triggering the decoder. when the input exceeds the squelch limit, the pll locks onto the incoming signal and the ksz8862m de codes a data frame. the receiver clock is maintained active during idle periods in between data reception. led driver the device provides a current mode fiber led driver (port 1 only). the edge-enhan ced current mode does not require any output wave shaping. the drive current of the led driver can be programmed thr ough atcr0 [7:6] register in bank 44. post amplifier the chip also includes a post amplifier (port 1 only). the post amplifier is intended for interfacing the output of the pre- amplifier of the pin diode module. the mini mum sensitivity of the amplifier is 2. 5 mv (rms) for 10base-fl receive on pin rxm1 or 16mv (rms) for 100base-sx receive on pin rxm1. power management the ksz8862m features per port power-down mode. to save po wer, the user can power-down the port that is not in use by setting bit 11 in either p1cr4 or p1mbcr register for port 1 and setting bit 11 in either p2cr4 or p2mbcr register for port 2. to bring the port back up, reset bit 11 in these registers. in addition, there is a full switch power-down mode. this mode shuts the entire switch down, when the pwrdn (pin 36) is pulled down to low. mdi/mdi-x auto crossover to eliminate the need for crossover cables between simila r devices, the ksz8862m suppor ts hp-auto mdi/mdi-x and ieee 802.3u standard mdi/mdi-x auto crossover on port 2. hp-aut o mdi/mdi-x is the default. the auto-sense function detects remote transmit and receive pairs and correctly assigns the transmit and receive pairs for the ksz8862m device. this feature is extr emely useful when end users are unaware of cable types in addition to saving on an additional uplink configuration connection. the auto-c rossover feature can be disa bled through the port control registers. the ieee 802.3u standard mdi and mdi-x definitions are: mdi mdi-x rj45 pins signals rj45 pins signals 1 td+ 1 rd+ 2 td- 2 rd- 3 rd+ 3 td+ 6 rd- 6 td- table 1. mdi/mdi-x pin definitions
micrel, inc. ksz8862-16/32mql april 2007 26 m9999-040407-3.0 straight cable a straight cable connects an mdi device to an mdi-x device or an mdi-x device to an mdi device. the following diagram shows a typical straight cable connectio n between a network interface card (nic) (mdi) and a switch, or hub (mdi-x). figure 4. typical straight cable connection crossover cable a crossover cable connects an mdi device to another mdi device, or an mdi-x device to another mdi-x device. the following diagram shows a typical crossover cable connec tion between two switches or hubs (two mdi-x devices). r e ce i v e p a i r r e c e i ve p a i r t r a n sm i t p a i r 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 t r a n s m i t p a i r 1 0 / 1 0 0 e t h e r n e t m e d i a d e p e n d e n t i n t e r f a ce 1 0 / 1 0 0 e t h e r n e t m e d i a d e p e n d e n t i n t e r f a c e m o d u l a r c o n n e ct o r ( r j- 4 5 ) h u b ( r e p e a t e r o r s w i t ch ) m o d u l a r c o n n e ct o r ( r j- 4 5 ) h u b ( r e p e a t e r o r s w i t ch ) c r o sso ve r c a b l e figure 5. typical crossover cable connection
micrel, inc. ksz8862-16/32mql april 2007 27 m9999-040407-3.0 auto negotiation the ksz8862m conforms to the auto negotiati on protocol as described by the 802. 3 committee to allow the channel to operate at 10base-t or 100base-tx on port 2 only. auto negotiation allows unshielded twisted pair (utp) link partner s to select the best common mode of operation. in auto negotiation, the link partners advertise c apabilities across the link to each other. if auto negotiation is not supported or th e link partner to the ksz8862m is forced to bypass auto negotiation, the mode is set by observing the signal at the receiver. this is known as parallel mode because while the transmitter is sending auto negotiation adver tisements, the receiver is listening for advertisements or a fixed signal protocol. the link setup is shown in the following flow diagram (figure 6). start auto negotiation force link setting listen for 10base-t link pulses listen for 100base-tx idles a ttempt auto negotiation link mode set bypass auto negotiation and set link mode link mode set ? parallel operation join flow no yes no yes figure 6. auto negotiation and parallel operation
micrel, inc. ksz8862-16/32mql april 2007 28 m9999-040407-3.0 linkmd ? cable diagnostics the ksz8862m linkmd ? uses time domain reflectometr y (tdr) to analyze the port 2 cabling plant for common cabling problems such as open circuits, short circuits, and impedance mismatches. linkmd ? works by sending a pulse of known amplitude and dura tion down the mdi and mdi-x pairs and then analyzes the shape of the reflected signal. timing t he pulse duration gives an indication of t he distance to the cabling fault with a maximum distance of 200m and an accuracy of +/?2m. internal circuitry displays the tdr information in a user-readable digital format in register p2vct [8:0]. note: cable diagnostics are only valid for copper connecti on (port 2) ?fiber-optic operation is not supported. access linkmd ? is initiated by accessing register p2vct, the linkmd ? control/status register, in conjunction with register p2cr4, the 100base-tx phy controller register. usage linkmd ? can be run at any time by making sure auto mdix has been disabled. to disable auto-mdix, write a ?1? to p2cr4 [10] for port 2 to enable manual contro l over the pair used to transmit the linkmd ? pulse. the self-clearing cable diagnostic test enable bit p2vct [15] for port 2, is set to ?1? to start the test on this pair. when bit p2vct [15] returns to ?0?, the test is complete. the test result is returned in bits p2vct [14:13] and the distance is returned in bits p2vct [8:0]. the cabl e diagnostic test results are as follows: 00 = valid test, normal condition 01 = valid test, open circuit in cable 10 = valid test, short circuit in cable 11 = invalid test, linkmd ? failed if p2vct [14:13] =11, this indicates an invalid test, and occurs when the ksz8862m is unable to shut down the link partner. in this instance, the test is not run, as it is not possible for the ksz 8862m to determine if the detected signal is a reflection of the signal generated or a signal from another source. cable distance can be approximated by the following formula: p2vct [8:0] x 0.4m for port 2 cable distance this constant may be calibrated for different cabling conditions, including cables with a veloci ty of propagation that varies significantly from the norm.
micrel, inc. ksz8862-16/32mql april 2007 29 m9999-040407-3.0 functional overview : mac and switch address lookup the internal lookup table stores mac a ddresses and their associated information. it contains a 1k entry unicast address learning table plus switching information. the ksz8862m is guaranteed to learn 1k addresses and dist inguishes itself from hash-based look-up tables, which depending upon the operating envi ronment and probabilities, may not guarantee the absolute number of addresses it can learn. learning the internal lookup engine updates its table with a new entry if the following conditions are met: 1. the received packet's source address ( sa) does not exist in the lookup table. 2. the received packet is good without receiv ing errors; the packet size is legal length. the lookup engine inserts the qualified sa in to the table, along with the port number and time stamp. if the table is full, then the last entry of the table is deleted to make room for the new entry. migration the internal look-up engine also monito rs whether a station has moved. if a st ation has moved, it updates the table accordingly. migration happens when the following conditions are met: 1. the received packet's sa is in the table but t he associated source port information is different. 2. the received packet is good without receiv ing errors; the packet size is legal length. the lookup engine updates the existing record in t he table with the new source port information. aging the look-up engine updates the time stamp information of a record whenever the corresponding sa appears. the time stamp is used in the aging process. if a record is not updat ed for a period of time, the look-up engine removes the record from the table. the look-up engine constantly performs th e aging process and continuously removes aging records. the aging period is about 200 seconds. this feature can be enabled or disabled through global register sgcr1 [10].
micrel, inc. ksz8862-16/32mql april 2007 30 m9999-040407-3.0 forwarding the ksz8862m forwards packets using the algorithm that is depicted in the following flowcharts. figure 7 shows stage one of the forwarding algorithm where the search engine looks up the vlan id, st atic table, and dynamic table for the destination address, and comes up with ?port to forward 1? (p tf1). ptf1 is then further modified by spanning tree, igmp snooping, port mirroring, and port vlan pr ocesses to come up with ?port to forwar d 2? (ptf2), as shown in figure 8. the packet is sent to ptf2. figure 7. destination address lookup flow chart in stage one start vlan id valid? ptf1 = null search static table search complete. get ptf1 from static mac table dynamic table search search complete. get ptf1 from vlan table search complete. get ptf1 from dynamic mac table ptf1 - search vlan table - ingress vlan filtering - discard npvid check yes no found not found found not found this search is based on da or da+fid this search is based on da+fid
micrel, inc. ksz8862-16/32mql april 2007 31 m9999-040407-3.0 spanning tree process ptf1 igmp process port mirror process port vlan membership check ptf2 - check receiving port's receive enable bit - check destination port's transmit enable bit - check whether packets are special (bpdu) or s p ecified - rx mirror - tx mirror - rx or tx mirror - rx and tx mirror - applied to mac #1 and mac #2 - igmp will be forwarded to the host port figure 8. destination address resolution flow chart in stage two the ksz8862m will not forwar d the following packets: 1. error packets. these include framing errors, frame check sequence (fcs) errors, alignment errors, and illegal size packet errors. 2. 802.3x pause frames. the ksz8862m intercepts these packets and performs the flow control. 3. "local" packets. based on destination address (da) look- up. if the destination port from the look up table matches the port from which the packet originated, the packet is defined as "local."
micrel, inc. ksz8862-16/32mql april 2007 32 m9999-040407-3.0 switching engine the ksz8862m features a high-performance switching engi ne to move data to and from the mac?s packet buffers. it operates in store and forward mode, while the effici ent switching mechanism reduces overall latency. the switching engine has a 32kb internal frame buffer. this reso urce is shared between all the ports. there are a total of 256 buffers available. each buffer is sized at 128b. mac operation the ksz8862m strictly abides by ieee 802.3 standards to ma ximize compatibility. additi onally, there is an added mac filtering function to filter unicast packets. the mac filteri ng function is useful in applications such as voip where restricting certain packets reduces cong estion and thus improves performance. inter packet gap (ipg) if a frame is successfully transmitted, the minimum 96-bit time for ipg is measured between two consecutive packets. if the current packet is ex periencing collisions, then the minimum 96-bit time for ipg is measured fr om carrier sense (crs) to the next transmit packet. back-off algorithm the ksz8862m implements the ieee stand ard 802.3 binary exponential back-off algorith m in half-duplex mode, and optional "aggressive mode" back-off. a fter 16 collisions, the packet is opti onally dropped dependi ng upon the switch configuration in sgcr1 [8]. late collision if a transmit packet experiences collisions after 512 bit times of the tr ansmission, then the packet is dropped. legal packet size the ksz8862m discards packets less than 64 bytes and can be programmed to accept packet size up to 1536 bytes in sgcr2 [1]. the ksz8862m can also be programmed for special appl ications to accept packet size up to 1916 bytes in sgcr2 [2]. flow control the ksz8862m supports standard 802.3x flow c ontrol frames on both transmit and receive sides. on the receive side, if the ksz8862m receives a pause cont rol frame, the ksz8862m will not transmit the next normal frame until the timer, specified in the pause control frame, expires. if another pause frame is received before the current timer expires, the timer will be updated with the new value in the second pause frame. during this period (while it is flow controlled), only flow control packets from the ksz8862m are transmitted. on the transmit side, the ksz8862m has inte lligent and efficient ways to determine when to invoke flow control. the flow control is based on availability of the system resources, includ ing available buffers, available transmit queues, and available receive queues. the ksz8862m will flow control a port that has just receiv ed a packet if the destination port resource is busy. the ksz8862m issues a flow control frame (x off), containing the maximum pause time as defined in i eee standard 802.3x. once the resource is freed up, the ksz 8862m then sends out the other flow contro l frame (xon) with zero pause time to turn off the flow control (turn on transmission to the port). a hysteresis feature is provided to prevent the flow control mechanism from being constantly activated and deactivated. the ksz8862m flow controls all ports if the receive queue becomes full. half-duplex backpressure a half-duplex backpressur e option (not in ieee 802.3 st andards) is also provided. the activa tion and deactivation conditions are the same in full-duplex mode. if backpressure is required, then the ksz8862m sends preambles to defer the other stations' tr ansmission (carrier sense deference).
micrel, inc. ksz8862-16/32mql april 2007 33 m9999-040407-3.0 to avoid jabber and excessive deference (as defined in the 802.3 standard), after a certain time, the ksz8862m discontinues the carrier sense and then raises it again quickly . this short silent time (no carrier sense) prevents other stations from sending out packets thus k eeping other stations in a carrier sense deferred state. if the port has packets to send during a backpressure situation, then the carrier sens e type backpressure is interrupted and those packets are transmitted instead. if there are no additional packets to se nd, then the carrier sense type backpressure is reactivated again until switch resources free up. if a collision occurs, th en the binary exponential back-off algorithm is skipped and carrier sense is generated immediately, t hus reducing the chance of further collisions and carrier sense is maintained to prevent packet reception. to ensure no packet loss in 10 base-t or 100 base-tx hal f-duplex modes, the user mu st enable the following: 1. aggressive back off (bit 8 in sgcr1) 2. no excessive collision drop (bit 3 in sgcr2) note: these bits are not set in defaul t, since this is not the ieee standard. broadcast storm protection the ksz8862m has an intelligent option to protect the switch sy stem from receiving too many broadcast packets. as the broadcast packets are forwarded to all por ts except the source port, an excessive number of switch resources (bandwidth and available space in transmit queues) may be utilized. the ksz 8862m has the option to includ e ?multicast packets? for storm control. the broadcast storm rate parameters are pr ogrammed globally, and can be enabled or disabled on a per port basis in p1cr1 [7] and p2cr1 [7]. the rate is based on a 67ms interval for 100bt and a 670ms interval for 10bt. at the beginning of each interval, the counter is cleared to zero and the rate limit mechanism starts to count the number of bytes during the interval. the rate definition is described in sgcr3 [2:0] [15:8]. the default setting is 0x63 (99 decimal). this is equal to a rate of 1%, calculated as follows: 148,800 frames/sec x 67 ms/interval x 1% = 99 frames/interval (approx.) = 0x63 note: 148,800 frames/sec is based on 64-byte block of packets in 100base-t with 12 bytes of ipg and 8 bytes of preamble between two packets. clock generator the x1 and x2 pins are connected to a 25 mh z crystal. x1 can also serve as the connector to a 3.3v , 25 mhz oscillator (as described in the pin description). the bus interface unit (biu) uses bclk (bus clock) for synchronous accesses. the maximum host port frequency is 50 mhz for vlbus-like and burst mode (32-bit interface only). bus interface unit (biu) the host interface of the biu is designed to communicate with embedded processors. the host interface of the ksz8862m is a generic bus interface. some glue logic may be required when the interface talks to various buses and processors. in terms of transfer type, the biu can s upport two transfers: asynchronous transf er and synchronous transfer. to support these transfers (asynchronous and synchronous) , the biu provides three groups of signals: 1. synchronous signals 2. asynchronous signals 3. common signals used for both synchr onous and asynchronous transfers. since both synchronous and asynchronous signals are indepe ndent of each other, synchronous burst transfer and asynchronous transfer can be mixed or interleaved but cannot be overlapped (due to the sharing of the common signals). in terms of physical data bus size, the ksz8862m supports 8, 16, and 32 bit host/industrial standard data bus sizes. given a physical data bus size, the ksz8862m supports 8, 16, or 32-bit data transfers depending upon the size of the physical data bus. for example, for a 32-bi t system/host data bus, it allows 8, 16, and 32-bit data transfers (ksz8862- 32mql); for a 16-bit system/host data bus, it allows 8 and 16-bit data transfers (ksz8862-16mql); and for 8-bit system/host data bus, it only allows 8-bit data transfers (ksz8862-16mql). note that ksz8862m does not support internal data byte-sw ap but it does support internal data word-swap. this means that the system/host data bus hd [7:0] has to connect to both d [7:0] and d [15:8] for 8-bit data bus interfaces. however, the system/host data bus hd [15:8] and hd [7:0] just connects to d [15:8] and d [7:0], respectively, for 16-bit data bus interface; there is no need to connect hd [31: 24] and hd [23:16] to d [ 31:24] and d [23:16].
micrel, inc. ksz8862-16/32mql april 2007 34 m9999-040407-3.0 table 2 describes the biu signal grouping. signal type (1) function common signals a[15:1] i address aen i address enable address enable asserted indicates memory address on the bus for dma access and since the device is an i/o device, address decoding is only enabled when aen is low. be3n, be2n, be1n, be0n i byte enable be0n be1n be2n be3n description 0 0 0 0 32-bit access (32-bit bus only) 0 0 1 1 lower 16-bit (d[15:0]) access 1 1 0 0 higher 16-bit (d[31:16]) access (32- bit bus only) 0 1 1 1 byte 0 (d[7:0]) access 1 0 1 1 byte 1 (d[15:8]) access 1 1 0 1 byte 2 (d[23:16]) access (32-bit bus only) 1 1 1 0 byte 3 (d[31:24]) access (32-bit bus only) note 1: be3n, be2n, be1n and be0n are ignored when datacsn is low because 32 bit transfers are assumed. note 2: be2n and be3n are valid only for the ksz8862-32 mode, and are nc for the ksz8862-16 mode. d[31:16] i/o data for ksz8862-32 mode only d[15:0] i/o data for both ksz8862-32 and ksz8862-16 modes adsn i address strobe the rising edge of adsn is used to latch a[15:1], aen, be3n, be2n, be1n and be0n. ldevn o local device this signal is a combinatorial decode of aen and a[15:4], the a[15:4] is used to compare against the base address register. datacsn i data register chip select (for ksz8862-32 mode only) this signal is used for central decoding arch itecture (mostly for embedded application). when asserted, the device?s local decoding l ogic is ignored and the 32-bit access to qmu data register is assumed. intrn o interrupt synchronous transfer signals vlbusn i vlbusn = 0, vlbus-like cycle. vlbusn = 1, burst cycle (both host/system and ksz8862 can insert wait state) cyclen i for vlbus-like access: used to sample swr when asserted. for burst access: used to connect to iowc# bus signal to indicate burst write. swr i write/read for vlbus-like access: used to indicate write (high) or read (low) transfer. for burst access: used to connect to iorc# bus signal to indicate burst read. srdyn o synchronous ready for vlbus-like access: exactly the same signal definition of nsrdy in vlbus. for burst access: insert wait state by the ksz8862m whenever necessary during the data register access.
micrel, inc. ksz8862-16/32mql april 2007 35 m9999-040407-3.0 signal type (1) function rdyrtnn i ready return for vlbus-like access: exactly like rdyrtnn signal in vlbus to end the cycle. for burst access: exactly like exrdy signal in ei sa to insert wait states. note that the wait states are inserted by system logic (memory) not by ksz8862m. bclk i bus clock asynchronous transfer signals rdn i asynchronous read wrn i asynchronous write ardy o asynchronous ready this signal is asserted (low) to insert wait states. table 2. bus interface unit signal grouping legend: i = input. o = output. i/o = bi-directional. regardless of whether the transfer is synchronous or asynchron ous, if the address latch is required, use the rising edge of adsn to latch the incoming signals a[15:1], aen, be3n, be2n, be1n, and be0n. note: whether the transfer is synchron ous or asynchronous , if the local device decoder is used, ldevn will be asserted to indicate that the ksz8862m is successfully targeted. ba sically, signal ldevn is a combinatorial decode of aen and a[15:4]. asynchronous interface for asynchronous transfers, the asynchronous dedicated si gnals rdn (for read) or wrn (f or write) toggle, but the synchronous dedicated signals bclk, cy clen, swr, and rdyrtnn are de-asserted and stay at the same logic level throughout the entire asynchronous transfer. there is no data burst support for asynchronous transfer. a ll asynchronous transfers are si ngle-data transfers. the biu, however, provides flexible asynchronous interfacing to communicate with vari ous applications and ar chitectures. three major ways of interfacing with the system (host) are. 1. interfacing with the system/host relying on local device decoding and havi ng stable address throughout the whole transfer: the typical example for this application is isa-like bus in terface using latched address signals as shown in the figure 16. no additional address latch is required, therefore adsn should be connected low. the biu decodes a[15:4] and qualifies with aen (address enable) to determine if the ksz8862m switch is the intended target. the host utilizes the rising edge of rdn to latch read data and the biu will use rising edge of wr n to latch write data. 2. interfacing with the system/host rely ing on local device decoding but not having stable address throughout the entire transfer: the typical example for this application is eisa-like bus (non-burst) interface as shown in the figure 17. this type of interface requires adsn to latch the address on the rising edge. the biu decodes latched a[15:4] and qualifies with aen to determine if the ks z8862m switch is the intended target. the data transfer is the same as the first case. 3. interfacing with the system/host relyi ng on central decoding (ksz8862-32 mode only). the typical example for this application is for an emb edded processor having a central decoder on the system board or within the processor. connecting t he chip select (cs) from system/hos t to datacsn bypasses the local device decoder. when the datacsn is asserted, it only allows access to the data register in 32 bits and be3n, be2n, be1n, and be0n are ignored as shown in the figure 18. no other registers can be accessed by asserting datacsn. the data transfer is the same as in the first case, independent of the type of asynchronous interface used. to insert a wait state, the biu will assert ardy to prolong the cycle.
micrel, inc. ksz8862-16/32mql april 2007 36 m9999-040407-3.0 synchronous interface for synchronous transfers, the sync hronous dedicated signals cyclen, swr, and rdyrtnn will toggle but the asynchronous dedicated signals rdn and wrn are de-asserted and stay at the same logic level throughout the entire synchronous transfer. the synchronous interface mainly support s two applications, one for vlbus-like and the other for eisa-like (dma type c) burst transfers. the vlbus-like interface supports only single-data transfer. the pin option vlbusn determines if it is a vlbus-like or eisa-like burst transfer ? if vlbusn = 0, the interface is for vl bus-like transfer; if vlbusn = 1, the interface is for eisa-like burst transfer. for vlbus-like transfer interface (vlbusn = 0): this interface is used in an architecture in which the device?s local decoder is utilized; that is, the biu decodes latched a[15:4] and qualifies with aen (address enable) to determi ne if the switch is the intended target. no burst is supported in this application. the m/nio signal connection in vlbus is routed to aen. the cyclen in this application is used to sample the swr signal when it is asserted. usually, cyclen is one clock delay of adsn. there is a handshaking process to end the cycle of vlbus-like transfer s. when the ksz8862m is ready to finish the cycle, it asserts srdyn . the system/host acknowledges sr dyn by asserting rdyrtnn afte r the system/host has latched the read data. the ksz8862m holds the read data until rdy rtnn is asserted. the timing waveform is shown in figure 22 and figure 23. for eisa-like burst transfer interface (vlbusn = 1): the swr is connected to iorc# in eisa to indicate the burst read and cyclen is connected to iowc# in eisa to indicate the burst write. no te that in this application, both the sys tem/host/memory and ksz8862m are capable of inserting wait states. for sys tem/host/memory to insert a wait state, assert the rdyrtnn signal; for the ksz8862m to insert the wait state, assert the srdyn signal. the timing waveform is shown in figure 20 and figure 21. summary figure 9 shows the mapping from isa-like, eisa-like and vlbus-like transactions to the switch?s biu. figure 10 shows the connection fo r different data bus sizes. note: for the 8-bit data bus mode, the internal invert er is enabled and connected between be0n and be1n, so even address will enable the be0n and odd address will en able the be1n. ksz8862m biu asynchronous interface synchronous interface address latch no addr latch (adsn = 0) central decode local decode address latch central decode (vlbusn = 1) local decode (vlbusn = 0) host logic host logic host logic host logic isa eisa vlbus burst non-burst note: to use datacsn & 32-bit only for central decode figure 9. mapping from isa-like, eisa-like, and vlbus-like transactions to the ksz8862m bus
micrel, inc. ksz8862-16/32mql april 2007 37 m9999-040407-3.0 d[7:0] d[15:8] d[23:16] d[31:24] gnd hd[7:0] nhbe[0] nhbe[2] nhbe[3] hd[15:8] nhbe[1] hd[23:16] hd[31:24] a[15:2] a[1] d[7:0] d[15:8] be0n be1n 8-bit data bus ha[1] ha[15:2] hd[7:0] ha[0] vdd a[15:2] a[1] d[7:0] d[15:8] be0n be1n 16-bit data bus (for example: isa-like) ha[1] ha[15:2] hd[7:0] ha[0] nsbhe a[15:2] a[1] be0n be1n be2n be3n 32-bit data bus (for example: eisa-like) ha[15:2] hd[15:8] ksz8862-16 ksz8862-16 ksz8862-32 figure 10. ksz8862m 8-bit, 16-bit, and 32-bit data bus connections biu implementation principles since the ksz8862m is an i/o device with 16 addressable locati ons, address decoding is bas ed on the values of a15-a4 and aen. whenever datacsn is asserted, the address decoder is disabled and a 32-bit transfer to data register is assumed (be3n ? be0n are ignored). if address latching is required, the address is latched on the rising edge of adsn and is transparent when adsn=0. 1. byte, word, and double-word data buses and accesses (transfers) are supported. 2. internal byte swapping is not implemented and word sw apping is supported internally. refer to figure 12 for the appropriate 8-bit, 16-bit, and 32-bit data bus connection. 3. since independent sets of synchronous and asynchro nous signals are provided, synchronous and asynchronous cycles can be mixed or interleaved as lo ng as they are not active simultaneously. 4. the asynchronous interface uses rdn and wrn signal strobes for data latching. if necessary, ardy is de- asserted on the leading edge of the strobe. 5. the vlbus-like synchronous interface uses bclk , adsn, and swr and cyclen to control read and write operations and generate srdyn to insert the wait state, if necessary, when vlbusn = 0. for read, the data must be held until rdyrtnn is asserted. 6. the eisa-like burst transfer is supported using synchronous interfac e signals and datacsn when i/o signal vlbusn = 1. both the system/host/memory and ksz8862m are capable of inserting wait states. to set the system/host/memory to insert a wait state, assert rdyrtnn signal. to set the ksz8862m to insert a wait state, assert srdyn signal.
micrel, inc. ksz8862-16/32mql april 2007 38 m9999-040407-3.0 queue management unit (qmu) the queue management unit (qmu) manages packet traffic bet ween the mac/phy interface and the system host. it has built-in packet memory for receive and transmit functions called txq (transmit queue) and rxq (receive queue). each queue contains 4kb of memory for back-to- back, non-blocking frame transfer perfo rmance. it provides a group of control registers for system control, fr ame status registers for current packet transmit/r eceive status, and interrupts to inform the host of the real time tx/rx status. transmit queue (txq) frame format the frame format for the transmit queue is shown in the followi ng table 3. the first word contains the control information for the frame to transmit. the second word is used to spec ify the total number of bytes of the frame. the packet data follows. the packet data area holds the frame itself. it may or may not include the crc ch ecksum depending on whether hardware crc checksum generation is enabled. multiple frames can be pipelined in both the transmit queue and receive queue as long as there is enough queue memory, thus avoiding overrun. for each transmitt ed frame, the transmit status informati on for the frame is located in the txsr register. packet memory address offset bit 15 bit 0 2 nd byte 1 st byte 0 control word 2 byte count 4 - up packet data (maximum size is 1916) table 3. transmit queue frame format since multiple packets can be pipelined into the tx packe t memory for transmit, the transmit status reflects the status of the packet that is current ly being transferred on the mac interfac e (which may or may not be the last queued packet in the tx queue). the transmit control word is the first 16-bit word in the tx packet memory, followed by a 16-bit byte count. it must be word aligned. each control word corresponds to on e tx packet. table 4 gives the transmit control word bit fields. bit description 15 txic transmit interrupt on completion when bit is set, the ksz8862m sets the transmit interrupt after the present frame has been transmitted. 14-10 reserved 9-8 txdpn transmit destination port number when bit is set, this field indicates the des tination port(s) where the packet is forwarded from host system. set bit 8 to indicate that port 1 is the destination port. set bit 9 to indicate that port 2 is the destination port. setting all ports to 1 causes the switch e ngine to broadcast the packet to both ports. setting all bits to 0 has no effect. the internal switch engine forwards the packets according to the switching algorithm in its mac lookup table. 7-6 reserved 5-0 txfid transmit frame id this field specifies the frame id that is used to identify the frame and its associated status information in the transmit status register txsr[5:0]. table 4. transmit control word bit fields
micrel, inc. ksz8862-16/32mql april 2007 39 m9999-040407-3.0 the transmit byte count specifies the total number of bytes to be transmitted from the txq. its format is given in table 5. bit description 15-11 reserved 10-0 txbc transmit byte count transmit byte count. hardware uses the byte count information to conserve the tx buffer memory for better utilization of the packet memory. note: the hardware behavior is unknown if an incorrect byte count information is written to this field. writing a 0 value to this field is not permitted. table 5. transmit byte count format the data area contains six bytes of dest ination address (da) followed by six byte s of source address (sa), followed by a variable-length number of bytes. on transmit, all bytes ar e provided by the cpu, including the source address. the ksz8862m does not insert its own sour ce address. the 802.3 frame length word (frame type in ethernet) is not interpreted by the ksz8862m. it is treated trans parently as data for transmit operations. receive queue (rxq) frame format the frame format for the receive queue is shown in table 6. the first word contains the status information for the frame received. the second word is the total number of bytes of the rx frame. following that is the packet data area. the packet data area holds the frame itself. it may or may not include the crc checksum de pending on whether hardware crc stripping is enabled. packet memory address offset bit 15 bit 0 2 nd byte 1 st byte 0 status word 2 byte count 4 - up packet data (maximum size is 1916) table 6. receive queue frame format
micrel, inc. ksz8862-16/32mql april 2007 40 m9999-040407-3.0 for receive, the packet receive status always reflects the re ceive status of the packet rece ived in the current rx packet memory (see table 7). the rxsr register indica tes the status of the current received frame. bit description 15 rxfv receive frame valid when bit is set, indicates that the present fr ame in the receive packet memory is valid and received from mac/phy. the st atus information currently in this location is also valid. when bit is reset, indicates that there is eithe r no pending receive frame or current frame is still in the process of receiving and has not completed yet. 14-10 reserved 9-8 rxspn receive source port number when bit is set, this field indicates the sour ce port where the packet was received. (setting bit 9 = 0 and bit 8 = 1 indicates the packet was received from port 1. setting bit 9 = 1 and bit 8 = 0 indicates that the packet was received from port 2. valid port is either port 1 or port 2. 7 rxbf receive broadcast frame when bit is set, indicates that this frame has a broadcast address. 6 rxmf receive multicast frame when bit is set, it indicates that this fram e has a multicast address (including the broadcast address). 5 rxuf receive unicast frame when bit is set, indicates that this frame has a unicast address. 4 reserved 3 rxft receive frame type when bit is set, indicates that the frame is an ethernet-type frame (frame length is greater than 1500 bytes). when clear, indicate that the frame is an ieee 802.3 frame. this bit is not valid for runt frames. 2 rxtl receive frame too long when bit is set, indicates that the frame len gth exceeds the maximum size of 1518 bytes. frames too long are passed to the host only if the pass bad frame bit is set. note: frame too long is only a frame lengt h indication and does not cause any frame truncation. 1 rxrf receive runt frame when bit is set, indicates that a frame was da maged by a collision or premature termination before the collision window has passed. runt fr ames are passed to the host only if the pass bad frame bit is set. 0 rxce receive crc error when bit is set, indicates that a crc error has occurred on the current received frame. crc error frame are passed to the host only if the pass bad frame bit is set. table 7. frxq packet receive status table 8 gives the format of the rx byte count field. bit description 15-11 reserved 10-0 rxbc receive byte count receive byte count. table 8. frxq rx byte count field
micrel, inc. ksz8862-16/32mql april 2007 41 m9999-040407-3.0 advanced switch functions spanning tree support to support spanning tree, the host port is the designated port for the processor. the other ports can be confi gured in one of the five spanning tree states via ?transmit enable?, ?receive enable? and ?learning disable? register settings in registers p1cr2 and p2cr2 for ports 1 and 2, respectively. table 9 shows the port setting and software actions taken for each of the five spanning tree states. disable state port setting software action the port should not forward or receive any packets. learning is disabled. ?transmit enable = 0, receive enable = 0, learning disable =1? the processor should not send any packets to the port. the switch may still send specific packets to the processor (packets that match some entries in the ?static mac table? with ?overridi ng bit? set) and the processor should discard those packets. address lear ning is disabled on the port in this state. blocking state port setting software action only packets to the processor are forwarded. ?transmit enable = 0, receive enable = 0, learning disable =1? the processor should not send any packets to the port(s) in this state. the processor should program the ?static ma c table? with the entries that it needs to receive (for example, bpdu packets). the ?overriding? bit should also be set so that the switch will forward those specific packets to the processor. address learning is di sabled on the port in this state. listening state port setting software action only packets to and from the processor are forwarded. learning is disabled. ?transmit enable = 0, receive enable = 0, learning disable =1? the processor should program the ?stati c mac table? with the entries that it needs to receive (for example, bpdu packets). the ?overriding? bit should be set so that the switch will forw ard those specific packets to the processor. the processor may send packe ts to the port(s) in this state. address learning is disabled on the port in this state. learning state port setting software action only packets to and from the processor are forwarded. learning is enabled. ?transmit enable = 0, receive enable = 0, learning disable = 0? the processor should program the ?stati c mac table? with the entries that it needs to receive (for example, bpdu packets). the ?overriding? bit should be set so that the switch will forw ard those specific packets to the processor. the processor may send packe ts to the port(s) in this state. address learning is enabled on the port in this state. forwarding state port setting software action packets are forwarded and received normally. learning is enabled. ?transmit enable = 1, receive enable = 1, learning disable = 0? the processor programs the ?static mac table? with the entries that it needs to receive (for example, bpdu pac kets). the ?overriding? bit is set so that the switch forwards those spec ific packets to the processor. the processor can send packets to the port(s) in this state. address learning is enabled on the port in this state. table 9. spanning tree states
micrel, inc. ksz8862-16/32mql april 2007 42 m9999-040407-3.0 igmp support for internet group management protocol (igmp) suppor t in layer 2, the ksz8862m provides two components: ?igmp? snooping the ksz8862m traps igmp packets and forwards them onl y to the processor (host port). the igmp packets are identified as ip packets (either ethernet ip packets, or ieee 802.3 snap ip packets) wi th ip version = 0x4 and protocol version number = 0x2. ?multicast address insertion? in the static mac table once the multicast address is progra mmed in the static mac table, the multicast session is trimmed to the subscribed ports, instead of broadcasting to all ports. ipv6 mld snooping the ksz8862m traps ipv6 multicast listener discovery (mld ) packets and forwards them only to the processor (host port). mld snooping is controlled by sgcr2 [13] (mld snooping enable) and sgcr2 [12] (mld option). setting sgcr2 [13] causes the ksz8862m to trap pack ets that meet all of the following conditions: ? ipv6 multicast packets ? hop count limit = 1 ? ipv6 next header = 1 or 58 (or = 0 with hop-by-hop next header = 1 or 58) ? if sgcr2[12] = 1, ipv6 next header = 43, 44, 50, 51, or 60 (or =0 with hop-by-hop next header = 43, 44, 50, 51, or 60) port mirroring support ksz8862m supports ?port mirroring? comprehensively as: ?receive only? mirror on a port all the packets received on the port are mirrored on the sniffer port. for example, port 1 is programmed to be ?receive sniff? and the host port is programmed to be the ?s niffer port?. a packet received on port 1 is destined to port 2 after the internal lookup. the ksz8862m forwards the packet to both port 2 and the host port. the ksz8862m can optionally even forward ?bad? re ceived packets to the ?sniffer port?. ?transmit only? mirror on a port all the packets transmitted on the port are mirrored on the sniffer port. for example, port 1 is programmed to be ?transmit sniff? and the host port is programmed to be the ?s niffer port?. a packet received on port 2 is destined to port 1 after the internal lookup. the ksz8862m forw ards the packet to both port 1 and the host port. ?receive and transmit? mirror on two ports all the packets received on port a and transmitted on port b are mirrored on the sniffer port. to turn on the ?and? feature, set register sgcr2, bit 8 to ?1?. for example, port 1 is program med to be ?receive sniff?, port 2 is programmed to be ?transmit sniff?, and the host port is pr ogrammed to be the ?sniffer port?. a packet received on port 1 is destined to port 2 after the internal lookup . the ksz8862m forwards the packet to both port 2 and the host port. multiple ports can be selected as ?receive sniff? or ?transmi t sniff?. in addition, any port can be selected as the ?sniffer port?. all these per port features can be selected through r egisters p1cr2, p2cr2, and p3cr2 for ports 1, 2, and the host port, respectively.
micrel, inc. ksz8862-16/32mql april 2007 43 m9999-040407-3.0 ieee 802.1q vlan support the ksz8862m supports 16 active vlans ou t of the 4096 possible vl ans specified in the i eee 802.1q specification. ksz8862m provides a 16-entry vlan table, which converts the 12-bits vlan id (vid) to the 4-bits filter id (fid) for address lookup. if a non-tagged or null-vid-tagged packet is re ceived, the ingress port default vid is used for lookup. in vlan mode, the lookup process starts with vlan table lookup to determine whether the vid is valid. if the vid is not valid, the packet is dropped and its address is not learned. if the vid is valid, the fid is re trieved for further lookup. the fid + destination address (fid+da) are used to determine th e destination port. the fid + source address (fid+sa) are used for address learning. (see tables 10 and 11.) da found in static mac table? use fid flag? fid match? da+fid found in dynamic mac table? action no don?t care don?t care no broadcast to the membership ports defined in the vlan table bits [18:16] no don?t care don?t care yes send to the destination port defined in the dynamic mac address table bits [53:52] yes 0 don?t care don?t care send to the destination port(s) defined in the static mac addres s table bits [50:48] yes 1 no no broadcast to the membership ports defined in the vlan table bits [18:16] yes 1 no yes send to the destination port defined in the dynamic mac address table bits [53:52] yes 1 yes don?t care send to the destination port(s) defined in the static mac addres s table bits [50:48] table 10. fid+da lookup in vlan mode fid+sa found in dynamic mac table? action no learn and add fid+sa to the dynamic mac address table yes update time stamp table 11. fid+sa lookup in vlan mode qos priority support the ksz8862m provides quality of service (qos) for applicat ions such as voip and video conferencing. offering four priority queues per port, the per-port transmit queue can be split into four priority queues: queue 3 is the highest priority queue and queue 0 is the lowest priority queue. bit 0 of regi sters p1cr1, p2cr1, and p3cr1 is used to enable split transmit queues for ports 1, 2, and the host port, respectively. port-based priority with port-based priority, each ingress por t is individually classified as a high-pri ority receiving port. all packets received at the high-priority receiving port are marked as high priority and are sent to the high-priority transmit queue if the corresponding transmit queue is split. bit 4 and 3 of regist ers p1cr1, p2cr1, and p3cr1 is used to enable port-based priority for ports 1, 2, and the host port, respectively. 802.1p-based priority for 802.1p-based priority, the ksz8862m ex amines the ingress (incoming) packets to determine whether they are tagged. if tagged, the 3-bit priority field in the vlan tag is retrie ved and compared against the ?priority mapping? value, as specified by the register sgcr6. the ?priority mapping? value is programmable.
micrel, inc. ksz8862-16/32mql april 2007 44 m9999-040407-3.0 figure 11 illustrates how the 802.1p priority field is embedded in the 802.1q vlan tag. tci 766 2 length data fcs 2 46-1500 4 tagged packet type (8100 for ethernet) 802 802 802 802. .. .1 1 1 1p p p p vlan id bytes bits 16 3 12 802.1q vlan tag 2 sa vpid preamble da 1 cfi 1 sfd figure 11. 802.1p priority field format 802.1p-based priority is enabled by bit 5 of registers p1cr 1, p2cr1, and p3cr1 for port s 1, 2, and the host port, respectively. the ksz8862m provides the option to insert or remove the prio rity tagged frame's header at each individual egress port. this header, consisting of the 2 bytes vlan protocol id (vpid) and the 2 bytes tag control information field (tci), is also referred to as the 802.1q vlan tag. tag insertion is enabled by bit 2 of registers p1cr1, p2cr1, and p3 cr1 for ports 1, 2, and the host port, respectively. at the egress port, untagged packets are t agged with the ingress port?s default tag. the default tags are programmed in register sets p1vidcr, p2vi dcr, and p3vidcr for ports 1, 2 and the host port, respectively. the ksz8862m does not add tags to already tagged packets. tag removal is enabled by bit 1 of registers p1cr1, p2cr1, and p3cr 1 for ports 1, 2, and the host port, respectively. at the egress port, tagged packets will ha ve their 802.1q vlan tags removed. the ksz8862m will not modify untagged packets. the crc is recalculated for both tag insertion and tag removal. 802.1p priority field re-mapping is a qos feature that allows the ksz8862m to set the ?user priority ceiling? at any ingress port. if the ingress packet?s priority field has a higher priority value than t he default tag?s priority field of the i ngress port, the packet?s priority field is replaced with the default tag? s priority field. the ?user pr iority ceiling? is enabled by bit 3 of registers p1cr2, p2cr2, and p3cr2 for ports 1, 2, and the host port, respectively. diffserv-based priority diffserv-based priority uses the tos registers shown in the pr iority control registers secti on. the tos priority control registers implement a fully decoded, 128- bit differentiated services code point (dscp) register to determine packet priority from the 6-bit tos field in the ip header. when the mo st significant 6 bits of the tos field are fully decoded, the resultant of the 64 possibilities is comp ared with the corresponding bi ts in the dscp register to determine priority. rate limiting support the ksz8862m supports hardware rate limiting from 64 kbps to 88 mbps, independently on the ?receive side? and on the ?transmit side? on a per port basis. for 10-base t, a rate setting above 10 mbps means the rate is not limited. on the receive side, the data receive rate for each priority at each port can be limited by setting up ingress rate control registers. on the transmit side, the data transmit rate for each priority queue at each port can be limited by setting up egress rate control registers. the size of each frame ha s options to include minimum ifg (inter frame gap) or preamble byte, in addition to the data field (from packet da to fcs).
micrel, inc. ksz8862-16/32mql april 2007 45 m9999-040407-3.0 for ingress rate limiting, ksz8862m provides options to sele ctively choose frames from all types, multicast, broadcast, and flooded unicast frames. the ksz8862m counts the data rate from those selected type of frames. packets are dropped at the ingress port when the data rate exceeds the specified rate limit. for egress rate limiting, the leaky bucket algorithm is applied to each output priority queue for shaping output traffic. inter frame gap is stretched on a per frame base to generate smooth, non-burst egress traffic. the throughput of each output priority queue is limited by the egress rate specified. if any egress queue receives more traffic than the specified egress rate throughput, packets may be accumulated in the output queue and packet memory. after the me mory of the queue or the port is us ed up, packet dropping or flow control will be triggered. as a result of conges tion, the actual egress rate may be dom inated by flow cont rol/dropping at the ingress end, and may be therefore slightly less than the specified egress rate. to reduce congestion, it is good practice to make su re the egress bandwidth exc eeds the ingress bandwidth. mac filtering function use the static table to assign a dedicated mac address to a specific port. when a unicast mac address is not recorded in the static table, it is also not lear ned in the dynamic mac table. the ksz8862m includes an option that can filter or forward unicast packets for an unknown mac add ress. this option is enabled by sgcr7 [7]. the unicast mac address filtering function is useful in preventing the broadcast of unicast packets t hat could degrade the quality of this port in applications such as voice over internet protocol (voip). configuration interface the ksz8862m operates only as a managed switch. eeprom interface it is optional in the ksz8862m to use an external eeprom. in the case that an eeprom is not used, the eeen pin must be tied low or floating. the external serial eeprom with a standard microwire bus interface is used for non-volatile storage of information such as the host mac addres s, base address, and default conf iguration settings. the ksz8862m can detect if the eeprom is a 1kb (93c46) or 4kb (93c66) eeprom device (the 93 c46 and the 93c66 are typical eeprom devices). the eeprom is organized as 16-bit mode. if the eeen pin is pulled high, the ksz8862m performs an automat ic read of the external eeprom words 0h to 6h after the de-assertion of re set. the eeprom values are placed in certain host-accessible regist ers. eeprom read/write functions can also be performed by softw are read/writes to the eepcr registers. the ksz8862m eeprom format is given below. word 15 8 7 0 0h base address 1h host mac address byte 2 host mac address byte 1 2h host mac address byte 4 host mac address byte 3 3h host mac address byte 6 host mac address byte 5 4h reserved 5h reserved 6h configparam (see table 13) 7h-3fh not used for ksz8862m (available for user to use) table 12. eeprom format
micrel, inc. ksz8862-16/32mql april 2007 46 m9999-040407-3.0 the format for configparam is shown in table 13. bit bit name description 15 -2 reserved reserved 1 clock_rate internal clock rate selection 0: 125 mhz 1: 25 mhz note: at power up, this chip operates on 1 25 mhz clock. the internal frequency can be dropped to 25 mhz via the external eeprom. 0 asyn_8bit async 8-bit or 16-bit bus select 1= bus is configured for 16-bit width 0= bus is configured for 8-bit width (32-bit width, ksz8862-32, don?t care this bit setting) table 13. configparam word in eeprom format loopback support the ksz8862m provides loopback support for remote diagnost ic of failure. in loopback mode, the speed at both phy ports will be set to 100base- tx full-duplex mode. two types of loopback are supported: far- end loopback a nd near-end (remote) loopback. far-end loopback far-end loopback is conducted between the ksz8862m?s two phy ports. the loopback path st arts at the ?originating.? phy port?s receive inputs (rxp/rxm), wraps around at the ?loopback? phy port?s pmd/pma, and ends at the ?originating? phy port?s transmit outputs (txp/txm). bit [8] of registers p1cr4 and p2cr4 is us ed to enable far-end loopback for ports 1 an d 2, respectively. alternatively, bit [14] of registers p1mbcr and p2mbcr can also be used to enable far-end loopback. the port 2 far-end loopback path is illustrated in the figure 12. near-end (remote) loopback near-end (remote) loopback is conducted at either phy port 1 or phy port 2 of the ksz8862m. the loopback path starts at the phy port receiving inputs (rxpx /rxmx), wraps around at the same phy port?s pmd/pma, and ends at the phy port?s transmit out puts (txpx/txmx). bit [1] of registers p1phyctrl and p2phyctrl is used to enable near-end loopback for ports 1 and 2, respectively. alternatively, bit [9] of registers p1scslmd and p2sc slmd can also be used to enable near-end loopback. the both ports 1 and 2 near-end loopback paths are illustrated in the following figure 13.
micrel, inc. ksz8862-16/32mql april 2007 47 m9999-040407-3.0 pm d2/pm a2 pcs2 mac2 sw itch mac1 pcs1 pm d1/pm a1 o r ig in a tin g ph y port 1 ph y port 2 far-end l oopback rxp1 / rxm 1 txp1 / txm 1 figure 12. port 2 far-end loopback path pm d2/pm a2 pcs2 mac2 switch mac1 pcs1 pm d1/pm a1 rxp rxp rxp rxp1 1 1 1 / // / rxm rxm rxm rxm 1 1 1 1 txp txp txp txp1 1 1 1 / // / txm txm txm txm 1 1 1 1 txp txp txp txp 2 2 2 2 / // / txm txm txm txm 2 2 2 2 rxp rxp rxp rxp2 2 2 2 / // / rxm rxm rxm rxm 2 2 2 2 phy port phy port phy port phy port 2 2 2 2 near near near near- - - -e n d end end end ( ( ( (rem ote re m o te re m o te re m o te ) ) ) ) loopback loopback loopback loopback phy port phy port phy port phy port 1 1 1 1 near near near near- - - -end end end end ( ( ( (re m o te re m o te re m o te re m o te ) ) ) ) loopback loopback loopback loopback figure 13. port 1 and port 2 near-end (remote) loopback path
micrel, inc. ksz8862-16/32mql april 2007 48 m9999-040407-3.0 cpu interface i/o registers the ksz8862m provides an eisa-like, isa-like, or vlbus-like bus interface for the cpu to access its internal i/o registers. i/o registers serve as the add ress that the microprocess or uses when communicating with the device. this is used for configuring operational settings, reading or writing contro l, status information, and tran sferring packets by reading and writing through the pa cket data registers. i/o registers input/output (i/o) register s are limited to 16 locations as required by most isa bus-based systems; therefore, registers are assigned to different banks. the last word of the i/o regi ster locations (0xe - 0xf) is shared by all banks and can be used to change the bank in use. the following i/o space mapping tables apply to 8, 16 or 32-bit bus products. depending on the bus interface used and byte enable signals (be[3:0]n control byte access), each i/o access can be performed as an 8-bit, 16-bit, or 32-bit operation. (the ksz8862m is not limited to 8/16-bit performance and 32-bit read/write are also supported).
micrel, inc. ksz8862-16/32mql april 2007 49 m9999-040407-3.0 internal i/o space mapping i/o register location bank location 32-bit 16-bit 8-bit bank 0 bank 1 bank 2 bank 3 bank 4 bank 5 bank 6 bank 7 0x0 base address [7:0] host mac address low [7:0] on-chip bus control [7:0] 0x0 - 0x1 0x1 base address [15:8] reserved host mac address low [15:8] on-chip bus control [15:8] reserved 0x2 host mac address mid [7:0] eeprom control [7:0] 0x0 to 0x3 0x2 - 0x3 0x3 reserved reserved host mac address mid [15:8] eeprom control [15:8] reserved 0x4 qmu rx flow control watermark [7:0] host mac address high [7:0] memory bist info [7:0] 0x4 - 0x5 0x5 qmu rx flow control watermark [15:8] reserved host mac address high [15:8] memory bist info [15:8] reserved 0x6 bus error status [7:0] global reset [7:0] 0x4 to 0x7 0x6 - 0x7 0x7 bus error status [15:8] reserved reserved global reset [15:8] reserved 0x8 bus burst length [7:0] bus configuration [7:0] 0x8 - 0x9 0x9 bus burst length [15:8] reserved reserved bus configuration [15:8] reserved 0xa 0x8 to 0xb 0xa - 0xb 0xb reserved 0xc 0xc - 0xd 0xd reserved 0xe bank select [7:0] 0xc to 0xf 0xe - 0xf 0xf bank select [15:8]
micrel, inc. ksz8862-16/32mql april 2007 50 m9999-040407-3.0 internal i/o space mapping (continued) i/o register location bank location 32-bit 16-bit 8-bit bank 8 bank 9 bank 10 bank 11 bank 12 bank 13 bank 14 bank 15 0x0 0x0 - 0x1 0x1 reserved 0x2 0x0 to 0x3 0x2 - 0x3 0x3 reserved 0x4 0x4 - 0x5 0x5 reserved 0x6 0x4 to 0x7 0x6 - 0x7 0x7 reserved 0x8 0x8 - 0x9 0x9 reserved 0xa 0x8 to 0xb 0xa - 0xb 0xb reserved 0xc 0xc - 0xd 0xd reserved 0xe bank select [7:0] 0xc to 0xf 0xe - 0xf 0xf bank select [15:8]
micrel, inc. ksz8862-16/32mql april 2007 51 m9999-040407-3.0 internal i/o space mapping (continued) i/o register location bank location 32-bit 16-bit 8-bit bank 16 bank 17 bank 18 bank 19 bank 20 bank 21 bank 22 bank 23 0x0 transmit control [7:0] txq command [7:0] interrupt enable [7:0] multicast table 0 [7:0] 0x0 - 0x1 0x1 transmit control [15:8] txq command [15:8] interrupt enable [15:8] multicast table 0 [15:8] reserved 0x2 transmit status [7:0] rxq command [7:0] interrupt status [7:0] multicast table 1 [7:0] 0x0 to 0x3 0x2 - 0x3 0x3 transmit status [15:8] rxq command [15:8] interrupt status [15:8] multicast table 1 [15:8] reserved 0x4 receive control [7:0] tx frame data pointer [7:0] receive status [7:0] multicast table 2 [7:0] 0x4 - 0x5 0x5 receive control [15:8] tx frame data pointer [15:8] receive status [15:8] multicast table 2 [15:8] reserved 0x6 rx frame data pointer [7:0] receive byte counter [7:0] multicast table 3 [7:0] 0x4 to 0x7 0x6 - 0x7 0x7 reserved rx frame data pointer [15:8] receive byte counter [15:8] multicast table 3 [15:8] reserved 0x8 txq memory information [7:0] qmu data low [7:0] 0x8 - 0x9 0x9 txq memory information [15:8] qmu data low [15:8] reserved reserved reserved 0xa rxq memory information [7:0] qmu data high [7:0] 0x8 to 0xb 0xa - 0xb 0xb rxq memory information [15:8] qmu data high [15:8] reserved 0xc 0xc - 0xd 0xd reserved 0xe bank select [7:0] 0xc to 0xf 0xe - 0xf 0xf bank select [15:8]
micrel, inc. ksz8862-16/32mql april 2007 52 m9999-040407-3.0 internal i/o space mapping (continued) i/o register location bank location 32-bit 16-bit 8-bit bank 24 bank 25 bank 26 bank 27 bank 28 bank 29 bank 30 bank 31 0x0 0x0 - 0x1 0x1 reserved 0x2 0x0 to 0x3 0x2 - 0x3 0x3 reserved 0x4 0x4 - 0x5 0x5 reserved 0x6 0x4 to 0x7 0x6 - 0x7 0x7 reserved 0x8 0x8 - 0x9 0x9 reserved 0xa 0x8 to 0xb 0xa - 0xb 0xb reserved 0xc 0xc - 0xd 0xd reserved 0xe bank select [7:0] 0xc to 0xf 0xe - 0xf 0xf bank select [15:8]
micrel, inc. ksz8862-16/32mql april 2007 53 m9999-040407-3.0 internal i/o space mapping (continued) i/o register location bank location 32-bit 16-bit 8-bit bank 32 bank 33 bank 34 bank 35 bank 36 bank 37 bank 38 bank 39 0x0 switch id and enable [7:0] switch global control 6 [7:0] mac address 1 [7:0] 0x0 - 0x1 0x1 switch id and enable [15:8] switch global control 6 [15:8] reserved mac address 1 [15:8] 0x2 switch global control 1 [7:0] switch global control 7 [7:0] mac address 2 [7:0] 0x0 to 0x3 0x2 - 0x3 0x3 switch global control 1 [15:8] switch global control 7 [15:8] reserved mac address 2 [15:8] 0x4 switch global control 2 [7:0] mac address 3 [7:0] 0x4 - 0x5 0x5 switch global control 2 [15:8] reserved mac address 3 [15:8] 0x6 switch global control 3 [7:0] 0x4 to 0x7 0x6 - 0x7 0x7 switch global control 3 [15:8] reserved 0x8 switch global control 4 [7:0] 0x8 - 0x9 0x9 switch global control 4 [15:8] reserved 0xa switch global control 5 [7:0] 0x8 to 0xb 0xa - 0xb 0xb switch global control 5 [15:8] reserved 0xc 0xc - 0xd 0xd reserved 0xe bank select [7:0] 0xc to 0xf 0xe - 0xf 0xf bank select [15:8]
micrel, inc. ksz8862-16/32mql april 2007 54 m9999-040407-3.0 internal i/o space mapping (continued) i/o register location bank location 32-bit 16-bit 8-bit bank 40 bank 41 bank 42 bank 43 bank 44 bank 45 bank 46 bank 47 0x0 tos priority control 1 [7:0] tos priority control 7 [7:0] indirect access ctrl. [7:0] digital test status [7:0] phy1 mii- register basic control [7:0] phy2 mii- register basic control [7:0] 0x0 - 0x1 0x1 tos priority control 1 [15:8] tos priority control 7 [15:8] indirect access ctrl. [15:8] reserved digital test status [15:8] phy1 mii- register basic control [15:8] phy2 mii- register basic control [15:8] reserved 0x2 tos priority control 2 [7:0] tos priority control 8 [7:0] indirect access data 1 [7:0] analog test status [7:0] phy1 mii- register basic status [7:0] phy2 mii- register basic status [7:0] phy1 special control/status [7:0] 0x0 to 0x3 0x2 - 0x3 0x3 tos priority control 2 [15:8] tos priority control 8 [15:8] indirect access data 1 [15:8] reserved analog test status [15:8] phy1 mii- register basic status [15:8] phy2 mii- register basic status [15:8] phy1 special control/status [15:8] 0x4 tos priority control 3 [7:0] indirect access data 2 [7:0] digital test control [7:0] phy1 phyid low [7:0] phy2 phyid low [7:0] phy2 linkmd ? control/status [7:0] 0x4 - 0x5 0x5 tos priority control 3 [15:8] reserved indirect access data 2 [15:8] reserved digital test control [15:8] phy1 phyid low [15:8] phy2 phyid low [15:8] phy2 linkmd ? control/status [15:8] 0x6 tos priority control 4 [7:0] indirect access data 3 [7:0] analog test control 0 [7:0] phy1 phyid high [7:0] phy2 phyid high [7:0] phy2 special control/status [7:0] 0x4 to 0x7 0x6 - 0x7 0x7 tos priority control 4 [15:8] reserved indirect access data 3 [15:8] reserved analog test control 0 [15:8] phy1 phyid high [15:8] phy2 phyid high [15:8] phy2 special control/status [15:8] 0x8 tos priority control 5 [7:0] indirect access data 4 [7:0] analog test control 1 [7:0] phy1 a.n. advertisement [7:0] phy2 a.n. advertisement [7:0] 0x8 - 0x9 0x9 tos priority control 5 [15:8] reserved indirect access data 4 [15:8] reserved analog test control 1 [15:8] phy1 a.n. advertisement [15:8] phy2 a.n. advertisement [15:8] reserved 0xa tos priority control 6 [7:0] indirect access data 5 [7:0] analog test control 2 [7:0] phy1 a.n. link partner ability [7:0] phy2 a.n. link partner ability [7:0] 0x8 to 0xb 0xa - 0xb 0xb tos priority control 6 [15:8] reserved indirect access data 5 [15:8] reserved analog test control 2 [15:8] phy1 a.n. link partner ability [15:8] phy2 a.n. link partner ability [15:8] reserved 0xc 0xc - 0xd 0xd reserved 0xe bank select [7:0] 0xc to 0xf 0xe - 0xf 0xf bank select [15:8]
micrel, inc. ksz8862-16/32mql april 2007 55 m9999-040407-3.0 internal i/o space mapping (continued) i/o register location bank location 32-bit 16-bit 8-bit bank 48 bank 49 bank 50 bank 51 bank 52 bank 53 bank 54 bank 55 0x0 port 1 control 1 [7:0] port 1 phy special control/status, linkmd ? [7:0] port 2 control 1 [7:0] port 2 phy special control/status, linkmd ? [7:0] host port control 1 [7:0] 0x0 - 0x1 0x1 port 1 control 1 [15:8] port 1 phy special control/status, linkmd ? [15:8] port 2 control 1 [15:8] port 1 phy special control/status, linkmd ? [15:8] host port control 1 [15:8] reserved 0x2 port 1 control 2 [7:0] port 1 control 4 [7:0] port 2 control 2 [7:0] port 2 control 4 [7:0] host port control 2 [7:0] 0x0 to 0x3 0x2 - 0x3 0x3 port 1 control 2 [15:8] port 1 control 4 [15:8] port 2 control 2 [15:8] port 2 control 4 [15:8] host port control 2 [15:8] reserved 0x4 port 1 vid control [7:0] port 1 status [7:0] port 2 vid control [7:0] port 2 status [7:0] host port vid control [7:0] 0x4 - 0x5 0x5 port 1 vid control [15:8] port 1 status [15:8] port 2 vid control [15:8] port 2 status [15:8] host port vid control [15:8] reserved 0x6 port 1 control 3 [7:0] port 2 control 3 [7:0] host port control 3 [7:0] 0x4 to 0x7 0x6 - 0x7 0x7 port 1 control 3 [15:8] reserved port 2 control 3 [15:8] reserved host port control 3 [15:8] reserved 0x8 port1 ingress rate control [7:0] port2 ingress rate control [7:0] host port ingress rate control [7:0] 0x8 - 0x9 0x9 port1 ingress rate control [15:8] reserved port2 ingress rate control [15:8] reserved host port ingress rate control [15:8] reserved 0xa port1 egress rate control [7:0] port2 egress rate control [7:0] host port egress rate control [7:0] 0x8 to 0xb 0xa - 0xb 0xb port1 egress rate control [15:8] reserved port2 egress rate control [15:8] reserved host port egress rate control [15:8] reserved 0xc 0xc - 0xd 0xd reserved 0xe bank select [7:0] 0xc to 0xf 0xe - 0xf 0xf bank select [15:8]
micrel, inc. ksz8862-16/32mql april 2007 56 m9999-040407-3.0 internal i/o space mapping (continued) i/o register location bank location 32-bit 16-bit 8-bit bank 56 bank 57 bank 58 bank 59 bank 60 bank 61 bank 62 bank 63 0x0 0x0 - 0x1 0x1 reserved 0x2 0x0 to 0x3 0x2 - 0x3 0x3 reserved 0x4 0x4 - 0x5 0x5 reserved 0x6 0x4 to 0x7 0x6 - 0x7 0x7 reserved 0x8 0x8 - 0x9 0x9 reserved 0xa 0x8 to 0xb 0xa - 0xb 0xb reserved 0xc 0xc - 0xd 0xd reserved 0xe bank select [7:0] 0xc to 0xf 0xe - 0xf 0xf bank select [15:8]
micrel, inc. ksz8862-16/32mql april 2007 57 m9999-040407-3.0 register map: sw itch and mac/phy do not write to bit values or to registers defined as reserved. manipulating reserved bits or registers causes unpredictable and often fatal results. if the user wants to write to these reserved bits, the user has to read back these reserved bits (ro or rw) first, then ?or? with the read val ue of the reserved bits and write back to these reserved bits. bit type definition ro = read only. rw = read/write. w1c = write 1 to clear (writing a one to this bit clears it). bank 0-63 bank select register (0x0e): bsr (same location in all banks) the bank select register is used to select or to switch between different sets of r egister banks for i/o access. there are a total of 64 banks available to select, including the built-in switch engine registers. bit default value r/w description 15-6 0x000 ro reserved 5-0 0x00 r/w bsa bank select address bits bsa bits select the i/o register bank in use. this register is always accessible regardl ess of the register bank currently selected. notes: the bank select register can be accessed as a doubleword (32-bit) at offset 0xc, as a word (16-bit) at offset 0xe, or as a byte (8-bit) at offset 0xe. a doubleword write to offset 0xc writes to the bank select register but does not write to registers 0xc and 0xd; it only writes to register 0xe. bank 0 base address register (0x00): bar this register holds the base address for decoding a device access. its value is l oaded from the external eeprom (0x0h) upon a power-on reset if the eepr om enable (eeen) pin is tied to high. its value can also be modified after reset. writing to this register do es not store the value into the eeprom. when the eeen pin is tied to low, the default base address is 0x0300. bit default value r/w description 15-8 0x03 if eeen is low or, the value from eeprom if eeen is high rw barh base address high these bits are compared against the address on the bus addr[15:8] to determine the base for the ksz8862m registers. 7-5 0x0 if eeen is low or, the value from eeprom if eeen is high rw barl base address low these bits are compared against the address on the bus addr[7:5] to determine the base for the ksz8862m registers. 4-0 0x00 ro reserved bank 0 qmu rx flow control high watermar k configuration register (0x04): qrfcr this register contains the user defined qmu rx queue high watermark configuration bit as below. bit default value r/w description 15-13 0x0 ro reserved 12 0 rw qmu rx flow control high watermark configuration 0: to select 3 kbytes, 1: to select 2 kbytes 11-0 0x000 ro reserved
micrel, inc. ksz8862-16/32mql april 2007 58 m9999-040407-3.0 bank 0 bus error status register (0x06): besr this register flags the different ki nds of errors on the host bus. bit default value r/w description 15 0 ro ibec illegal byte en able combination 1: illegal byte enable combination occurs. the illegal combination value can be found from bit 14 to bit 11. 0: legal byte enable combination. write 1 to clear. 14-11 - ro ibecv illegal byte enab le combination value bit 14: byte enable 3. bit 13: byte enable 2. bit 12: byte enable 1. bit 11: byte enable 0. this value is valid only when bit 15 is set to 1. 10 0 ro ssaxfer simultaneous synchronous and asnychronous transfers 1: synchronous and asnychronous transfers occur simultaneously. 0: normal. write 1 to clear. 9-0 0x000 ro reserved bank 0 bus burst length register (0x08): bblr before the burst can be sent, the burst length needs to be programmed. bit default value r/w description 15 0 ro reserved 14-12 0x0 rw brl burst length (for burst read and write) 000: single. 011: fixed burst read length of 4. 101: fixed burst read length of 8. 111: fixed burst read length of 16. 11-0 0x000 ro reserved bank 1 reserved except bank select register (0xe). bank 2 host mac address register low (0x00): marl this register along with the other two host mac address registers are loaded starting at word location 0x1 of the eeprom upon hardware reset. the software driver can modify th e register, but it will not m odify the original host mac address value in the eeprom. these six bytes of host mac addres s in external eeprom are loaded to these three registers as mapping below: marl[15:0] = eeprom 0x1(mac byte 2 and 1) marm[15:0] = eeprom 0x2(mac byte 4 and 3) marh[15:0] = eeprom 0x3(mac byte 6 and 5) the host mac address is used to define the individual destination address that th e ksz8862m responds to when receiving frames. network addresses are generally express ed in the form of 01:23:45:67 :89:ab, where the bytes are received from left to right, and the bits within each byte ar e received from right to left (lsb to msb). for example, the actual transmitted and received bits are on the order of 10000000 11000100 10100010 11100110 10010001 11010101. these three registers value for host mac addre ss 01:23:45:67:89:ab will be held as below: marl[15:0] = 0x89ab marm[15:0] = 0x4567 marh[15:0] = 0x0123 the following table shows the register bit fields:
micrel, inc. ksz8862-16/32mql april 2007 59 m9999-040407-3.0 bit default value r/w description 15-0 - rw marl mac address low the least significant word of the mac address. bank 2 host mac address register middle (0x02): marm the middle word of host mac address. the following table shows the register bit fields: bit default value r/w description 15-0 - rw marm mac address middle the middle word of the mac address. bank 2 host mac address register high (0x04): marh the high word of host mac address. the following table shows the register bit fields. bit default value r/w description 15-0 - rw marh mac address high the most significant word of the mac address. bank 3 on-chip bus control register (0x00): obcr this register controls the on-chip bus speed for the ksz8862m. it is used for power management when the external host cpu is running at a slow frequency. the default of the on-chip bus speed is 125 mhz without eeprom. when the external host cpu is running at a higher clock rate, t he on-chip bus should be adjusted for the best performance. bit default value r/w description 15-2 - ro reserved 1-0 0x0 rw obsc on-chip bus speed control 00: 125mhz. 01: 62.5mhz. 10: 41.66mhz. 11: 25mhz. note: when external eeprom is enabled, the bit 1 in configparm word (0x6h) is used to contol this speed as below: bit 1 = 0 , this value will be 00 for 125 mhz. bit 1 = 1 , this value will be 11 for 25 mhz. (user still can write these two bits to change speed after eeprom data loaded)
micrel, inc. ksz8862-16/32mql april 2007 60 m9999-040407-3.0 bank 3 eeprom control register (0x02): eepcr to support an external eeprom, tie t he eeprom enable (eeen) pin to high; othe rwise, tie it to low. if an external eeprom is not used, the default chip ba se address (0x300), and the software programs the host mac address. if an eeprom is used in the design (eeprom enable pin to high), the chip base address and host mac address are loaded from the eeprom immediately after reset. the ksz8862m allo ws the software to access (read and write) the eeprom directly; that is, the eeprom access ti ming can be fully controlled by the softwar e if the eeprom software access bit is set. bit default value r/w description 15-5 - ro reserved 4 0 rw eesa eeprom software access 1: enable software to access eeprom through bit 3 to bit 0. 0: disable software to access eeprom. 3 - ro eecb eeprom status bit data receive from eeprom. this bit directly reads the eedi pin. 2-0 0x0 rw eecb eeprom control bits bit 2: data transmit to eeprom. this bit directly controls the device?s eedo pin. bit 1: serial clock. this bit direc tly controls the device?s eesk pin. bit 0: chip select for eeprom. this bit directly controls the device?s eecs pin. bank 3 memory bist info register (0x04): mbir bit default value r/w description 15-13 0x0 ro reserved 12 - ro txmbf tx memory bist finish when set, it indicates the memory built in self test completion for the tx memory. 11 - ro txmbfa tx memory bist fail when set, it indicates the memory built in self test has failed. 10-5 - ro reserved 4 - ro rxmbf rx memory bist finish when set, it indicates the memory built in self test completion for the rx memory. 3 - ro rxmbfa rx memory bist fail when set, it indicates the memory built in self test has failed. 2-0 - ro reserved bank 3 global reset register (0x06): grr this register controls the global reset func tion with information programmed by the cpu. bit default value r/w description 15-1 0x0000 ro reserved 0 0 rw global soft reset 1: software reset is active. 0: software reset is inactive. software reset will affect ph y, mac, qmu, dma, and the switch core, only the biu (base address registers) remains unaffected by a software reset.
micrel, inc. ksz8862-16/32mql april 2007 61 m9999-040407-3.0 bank 3 bus configuration register (0x08): bcfg this register is a read-only register. th e bit 0 is automatically downloaded from bit 0 configparm word of eeprom, if pin eeen is high (enabled eeprom) bit default value r/w description 15-1 0x0000 ro reserved 0 - ro bus configuration (only for ksz8862-16 device) 1: bus width is 16 bits. 0: bus width is 8 bits. (this bit is only avaiable when eeprom is enabled) banks 4 ? 15: reserved except bank select register (0xe) . bank 16 transmit control register (0x00): txcr this register holds control information programmed by the cpu to control the qmu transmit module function. bit default value r/w description 15 - ro reserved 14 0x0 rw reserved 13 0x0 rw reserved 12-4 - ro reserved 3 0x0 rw txfce transmit flow control enable when this bit is set, the qmu sends flow contro l pause frames from the host port if the rx fifo has reached its threshold. note: the sgcr3[5] in bank 32 also needs to be enabled. 2 0x0 rw txpe transmit padding enable when this bit is set, the ksz8862m automatically adds a padding field to a packet shorter than 64 bytes. note: setting this bit requires enabling the add crc feature to avoid crc errors for the transmit packet. 1 0x0 rw txce transmit crc enable when this bit is set, the ksz8862m automaticall y adds a crc checksum field to the end of a transmit frame. 0 0x0 rw txe transmit enable when this bit is set, the transmit module is enabled and placed in a running state. when reset, the transmit process is placed in the stopped state after the transmission of the current frame is completed. bank 16 transmit status register (0x02): txsr this register keeps the status of the last transmitted frame. bit default value r/w description 15-6 0x000 ro reserved 5-0 - ro txfid transmit frame id this field identifies the transmitted frame. a ll of the transmit stat us information in this register belongs to the frame with this id.
micrel, inc. ksz8862-16/32mql april 2007 62 m9999-040407-3.0 bank 16 receive control register (0x04): rxcr this register holds control information programm ed by the cpu to control the receive function. bit default value r/w description 15-11 - ro reserved 10 0x0 rw rxfce receive flow control enable when this bit is set, the ksz8862m will acknowledge a pause frame from the receive interface; i.e., the outgoing packets are pen ding in the transmit buffer until the pause frame control timer expires. when this bit is cleared, flow control is not enabled. 9 0x0 rw rxefe receive error frame enable when this bit is set, crc error frames are allowed to be received into the rx queue. when reset, all crc error frames are discarded. 8 - ro reserved 7 0x0 rw rxbe receive broadcast enable when this bit is set, the rx module receives all the broadcast frames. 6 0x0 rw rxme receive multicast enable when this bit is set, the rx module receives all the multicast frames (including broadcast frames). 5 0x0 rw rxue receive unicast when this bit is set, the rx module receives unicast frames that match the 48-bit station mac address of the module. 4 0x0 rw rxra receive all when this bit is set, the ksz8862m receives all incoming frames, regardless of the frame?s destination address. 3 0x0 rw rxsce receive strip crc when this bit is set, the ksz8862m strips th e crc on the received frames. once cleared, the crc is stored in memory following the packet. 2 0x0 rw qmu receive multicast hash-table enable when this bit is set, this bit enables the rx f unction to receive multicast frames that pass the crc hash filtering mechanism. 1 - ro reserved 0 0x0 rw rxe receive enable when this bit is set, the rx block is enabl ed and placed in a running state. when reset, the receive process is placed in the stopped stat e upon completing reception of the current frame. bank 16 txq memory information register (0x08): txmir this register indicates the amount of free me mory available in the txq of the qmu module. bit default value r/w description 15-13 - ro reserved 12-0 - ro txma transmit memory available the amount of memory available is represented in units of byte. the txq memory is used for both frame payload, control word. there is total 4096 bytes in txq. note: software must be written to ensure that there is enough memory for the next transmit frame including control information before transmit data is written to the txq.
micrel, inc. ksz8862-16/32mql april 2007 63 m9999-040407-3.0 bank 16 rxq memory information register (0x0a): rxmir this register indicates the amount of receive data available in the rx q of the qmu module. bit default value r/w description 15-13 - ro reserved 12-0 - ro rxma receive packet data available the amount of receive packet data available is represented in units of byte. the rxq memory is used for both frame payload, stat us word. there is total 4096 bytes in rxq. this counter will update after a complete packet is received and also issues an interrupt when receive interrupt enable ier[13] in bank 18 is set. note: software must be written to empty the rxq memory to allow for the new rx frame. if this is not done, the frame may be discarded as a result of insufficient rxq memory. bank 17 txq command register (0x00): txqcr this register is programmed by the host cpu to issue a transmit command to the txq. the present transmit frame in the txq memory is queued for transmit. bit default value r/w description 15-1 - ro reserved 0 0x0 rw txetf enqueue tx frame when this bit is set as 1, the current tx frame prepared in the tx buffer is queued for transmit. note: this bit is self-clearing after the frame is finished transmitting. the software should wait for the bit to be cleared before setting up another new tx frame. bank 17 rxq command register (0x02): rxqcr this register is programmed by the host cpu to issue release command to the rx q. the current frame in the rxq frame buffer is read out by the host and the memory space is released. bit default value r/w description 15-1 - ro reserved do not write to this register. 0 0x0 rw rxrrf release rx frame when this bit is set as 1, the current rx frame buffer is released. note: this bit is self-clearing after the fr ame memory is released. the software should wait for the bit to be cleared before processing new rx frames. bank 17 tx frame data pointer register (0x04): txfdpr the value of this register determines the address to be ac cessed within the txq frame buffer. when the auto increment is set, it will automatically increment the pointer value on write accesses to the data register. the counter is incremented by one for every byte access, by two for every word access, and by four for every double word access. bit default value r/w description 15 - ro reserved 14 0x0 rw txfpai tx frame data pointer auto increment when this bit is set, the tx frame data po inter register increments automatically on accesses to the data register. the increment is by one for every byte access, by two for every word access, and by four for every doubleword access. when this bit is reset, the tx frame data pointer is manually controlled by user to access the tx frame location. 13-11 - ro reserved 10-0 0x0 rw txfp tx frame pointer tx frame pointer index to the frame data register for access. this field reset to next available tx frame location when the tx frame data has been enqueued through the txq command register.
micrel, inc. ksz8862-16/32mql april 2007 64 m9999-040407-3.0 bank 17 rx frame data pointer register (0x06): rxfdpr the value of this register determines the address to be acce ssed within the rxq frame buffer. when the auto increment is set, it will automatically increment the rxq po inter on read accesses to the data register. the counter is incremented is by one fo r every byte access, by two for every wo rd access, and by four for every double word access. bit default value r/w description 15 - ro reserved 14 0x0 rw rxfpai rx frame pointer auto increment when this bit is set, the rxq address regist er increments automatically on accesses to the data register. the increment is by one for every byte access, by two for every word access, and by four for every double word access. when this bit is reset, the rx frame data pointer is manually controlled by user to access the rx frame location. 13-11 - ro reserved 10-0 0x0 rw rxfp rx frame pointer rx frame data pointer index to the data register for access. this field reset to next available rx frame location when rx frame release command is issued (through the rxq command register). bank 17 qmu data register low (0x08): qdrl this register qdrl(0x08-0x09) contains the low data word presently addressed by the pointer register. reading maps from the rxq, and writing maps to the txq. bit default value r/w description 15-0 - rw qdrl queue data register low this register is mapped into two uni-directional buffers for 16-bit buses, and one uni- directional buffer for 32-bit buses, (txq when write, rxq when read) that allow moving words to and from the ksz8862m regardless of whether the pointer is even, odd, or dword aligned. byte, word, and dword access can be mixed on the fly in any order. this register along with dqrh is mapped into two consecutive word locations for 16-bit buses, or one word location for 32-bit buses , to facilitate dwor d move operations. bank 17 qmu data register high (0x0a): qdrh this register qdrh(0x0a-0x0b ) contains the high data word presently addre ssed by the pointer register. reading maps from the rxq, and writing maps to the txq. bit default value r/w description 15-0 - rw qdrl queue data register high this register is mapped into two uni-directional buffers for 16-bit buses, and one uni- directional buffer for 32-bit buses, (txq when write, rxq when read) that allow moving words to and from the ksz8862m regardless of whether the pointer is even, odd, or dword aligned. byte, word, and dword access can be mixed on the fly in any order. this register along with dqrl is mapped into two consecutive word locations for 16-bit buses, or one word location for 32-bit buses , to facilitate dwor d move operations.
micrel, inc. ksz8862-16/32mql april 2007 65 m9999-040407-3.0 bank 18 interrupt enable register (0x00): ier this register enables the interrupts from the qmu and other sources. bit default value r/w description 15 0x0 rw lcie link change interrupt enable when this bit is set, the link change interrupt is enabled. when this bit is reset, the link change interrupt is disabled. 14 0x0 rw txie transmit interrupt enable when this bit is set, the transmit interrupt is enabled. when this bit is reset, the transmit interrupt is disabled. 13 0x0 rw rxie receive interrupt enable when this bit is set, the receive interrupt is enabled. when this bit is reset, the receive interrupt is disabled. 12 0x0 rw reserved 11 0x0 rw rxoie receive overrun interrupt enable when this bit is set, the receive overrun interrupt is enabled. when this bit is reset, the receive overrun interrupt is disabled. 10 0x0 rw reserved 9 0x0 rw txpsie transmit process stopped interrupt enable when this bit is set, the transmit process stopped interrupt is enabled. when this bit is reset, the transmit process stopped interrupt is disabled. 8 0x0 rw rxpsie receive process stopped interrupt enable when this bit is set, the receive pr ocess stopped interrupt is enabled. when this bit is reset, the receive process stopped interrupt is disabled. 7 0x0 rw rxefie receive error frame interrupt enable when this bit is set, the receive error frame interrupt is enabled. when this bit is reset, the receive error frame interrupt is disabled. 6-0 - ro reserved
micrel, inc. ksz8862-16/32mql april 2007 66 m9999-040407-3.0 bank 18 interrupt status register (0x02): isr this register contains t he status bits for all qmu and other interrupt sources. when the corresponding enable bit is set, it causes the interrupt pin to be asserted. this register is usually read by the host cpu and device driv ers during interrupt service routine or polling. the register bits are not cleared when read. the user has to write ?1? to clear. bit default value r/w description 15 0x0 ro (w1c) lcis link change interrupt status when this bit is set, it indicates that the link status has changed from link up to link down, or link down to link up. this edge-triggered interrupt status is cleared by writing 1 to this bit. 14 0x0 ro (w1c) txis transmit status when this bit is set, it indicates that t he txq mac has transmitted at least a frame on the mac interface and the qmu txq is ready for new frames from the host. this edge-triggered interrupt status is cleared by writing 1 to this bit. 13 0x0 ro (w1c) rxis receive interrupt status when this bit is set, it indicates that the qmu rxq has received a frame from the mac interface and the frame is ready for the host cpu to process. this edge-triggered interrupt status is cleared by writing 1 to this bit. 12 0x0 ro reserved 11 0x0 ro (w1c) rxois receive overrun interrupt status when this bit is set, it indicates that t he receive overrun status has occurred. this edge-triggered interrupt status is cleared by writing 1 to this bit. 10 0x0 ro reserved 9 0x1 ro (w1c) txpsie transmit process stopped status when this bit is set, it indicates that the transmit process has stopped. this edge-triggered interrupt status is cleared by writing 1 to this bit. 8 0x1 ro (w1c) rxpsie receive process stopped status when this bit is set, it indicates t hat the receive process has stopped. this edge-triggered interrupt status is cleared by writing 1 to this bit. 7 0x0 ro (w1c) rxefie receive error frame interrupt status when this bit is set, it indicates that the receive error frame status has occurred. this edge-triggered interrupt status is cleared by writing 1 to this bit. 6-0 - ro reserved
micrel, inc. ksz8862-16/32mql april 2007 67 m9999-040407-3.0 bank 18 receive status register (0x04): rxsr this register indicates the status of the current received fr ame and mirrors the receive stat us word of the receive frame in the rxq. bit default value r/w description 15 - ro rxfv receive frame valid when set, it indicates that the present frame in the receive packet memory is valid. the status information currently in this location is also valid. when clear, it indicates that there is either no pending receive frame or that the current frame is still in the process of receiving. 14-10 - ro reserved 9-8 - ro rxspn receive source port number when bit is set, this field indicates the source port where the packet was received. (setting bit 9 = 0 and bit 8 = 1 indicates the pa cket was received from port 1. setting bit 9 = 1 and bit 8 = 0 indicates that the packet wa s received from port 2. valid port is either port 1 or port 2. 7 - ro rxbf receive broadcast frame when set, it indicates that this frame has a broadcast address. 6 - ro rxmf receive multicast frame when set, it indicates that this frame has a multicast address (including the broadcast address). 5 - ro rxuf receive unicast frame when set, it indicates that this frame has a unicast address. 4 - ro reserved 3 - ro rxft receive frame type when set, it indicates that the frame is an et hernet-type frame (frame length is greater than 1500 bytes). when clear, it indicate that the frame is an ieee 802.3 frame. this bit is not valid for runt frames. 2 - ro rxtl receive frame too long when set, it indicates that the frame length exceeds the maximum size of 1916 bytes. frames that are too long are pas sed to the host only if the pass bad frame bit is set (bit 9 in rxcr register) note: frame too long is only a frame lengt h indication and does not cause any frame truncation. 1 - ro rxrf receive runt frame when set, it indicates that a frame was damage d by a collision or premature termination before the collision window has passed. runt frames are passed to the host only if the pass bad frame bit is set (bit 9 in rxcr register). 0 - ro rxce receive crc error when set, it indicates that a crc error has occurred on the current received frame. a crc error frame is passed to the host only if t he pass bad frame bit is set (bit 9 in rxcr register). bank 18 receive byte counter register (0x06): rxbc this register indicates the st atus of the current received frame and mirrors the receive byte count word of the receive frame in the rxq. bit default value r/w description 15-11 - ro reserved 10-0 - ro rxbc receive byte count receive byte count.
micrel, inc. ksz8862-16/32mql april 2007 68 m9999-040407-3.0 bank 19 multicast table register 0 (0x00): mtr0 the 64-bit multicast table is used for group address filtering. this value is defined as the six most significant bits from crc circuit calculation result that is ba sed on 48-bit of da input. the two most significant bits select one of the four registers to be used, while the others det ermine which bit within the register. multicast table register 0. bit default value r/w description 15-0 0x0000 rw mtr0 multicast table 0 when the appropriate bit is set, if the pa cket received with da matches the crc, the hashing function is received without being filtered. when the appropriate bit is cleared, the packet will drop. note: when the receive all (rxra) or receive multicast (rxrm) bit is set in the rxcr, all multicast addresses are received r egardless of the multicast table value. bank 19 multicast table register 1 (0x02): mtr1 multicast table register 1. bit default value r/w description 15-0 0x0000 rw mtr0 multicast table 1 when the appropriate bit is set, if the pa cket received with da matches the crc, the hashing function is received without being filtered. when the appropriate bit is cleared, the packet will drop. note: when the receive all (rxra) or receive multicast (rxrm) bit is set in the rxcr, all multicast addresses are received r egardless of the multicast table value. bank 19 multicast table register 2 (0x04): mtr2 multicast table register 2. bit default value r/w description 15-0 0x0000 rw mtr0 multicast table 2 when the appropriate bit is set, if the pa cket received with da matches the crc, the hashing function is received without being filtered. when the appropriate bit is cleared, the packet will drop. note: when the receive all (rxra) or receive multicast (rxrm) bit is set in the rxcr, all multicast addresses are received r egardless of the multicast table value. bank 19 multicast table register 3 (0x06): mtr3 multicast table register 3. bit default value r/w description 15-0 0x0000 rw mtr0 multicast table 3 when the appropriate bit is set, if the pa cket received with da matches the crc, the hashing function is received without being filtered. when the appropriate bit is cleared, the packet will drop. note: when the receive all (rxra) or receive multicast (rxrm) bit is set in the rxcr, all multicast addresses are received r egardless of the multicast table value. banks 20 ? 31: reserved except bank select register (0xe).
micrel, inc. ksz8862-16/32mql april 2007 69 m9999-040407-3.0 bank 32 switch id and enable register (0x00): sider this register contains the switch id and the switch enable control. bit default r/w description 15-8 0x88 ro family id chip family id 7-4 0x8 ro chip id 0x8 is assigned to ksz8862m 3-1 0x1 ro revision id 0 0 rw start switch 1 = start the chip. 0 = switch is disabled. bank 32 switch global control register 1 (0x02): sgcr1 this register contains the global control for the switch function. bit default r/w description 15 0 rw pass all frames 1 = switch all packets including bad ones. used solely for debugging purposes. works in conjunction with sniffer mode only. 14 0 rw reserved 13 1 rw ieee 802.3x transmit directi on flow control enable 1 = enables transmit direction flow control feature. 0 = will not enable transmit direction flow contr ol feature. the switch will not generate any flow control packets. 12 1 rw ieee 802.3x receive direction flow control enable 1 = enables receive direction flow control feature. 0 = will not enable receive direction flow control f eature. the switch will not react to any received flow control packets. 11 0 rw frame length field check 1 = checks frame length field in the ieee packets. if the actual length does not match, the packet will be dropped (for length/type field < 1500). 10 1 rw aging enable 1 = enable age function in the chip. 0 = disable age function in the chip. 9 0 rw fast age enable 1 = turn on fast age (800us). 8 0 rw aggressive back-off enable 1 = enable more aggressive back off algorithm in half-duplex mode to enhance performance. this is not an ieee standard. 7-4 - rw reserved 3 0x0 rw pass flow control packet 1 = switch will not filter 802. 1x ?flow control? packets. 2-1 - rw reserved 0 0 rw link change age 1 = link change from ?link? to ?no link? will cause fast aging (<800us) to age address table faster. after an age cycle is complete, the age logic will return to normal (300 + 75 seconds). note: if any port is unplugged, all addresses will be automatically aged out.
micrel, inc. ksz8862-16/32mql april 2007 70 m9999-040407-3.0 bank 32 switch global control register 2 (0x04): sgcr2 this register contains the global control for the switch function. bit default r/w description 15 0 rw 802.1q vlan enable 1 = 802.1q vlan mode is turned on. vlan table must be set up before the operation. 0 = 802.1q vlan is disabled. 14 0 rw igmp snoop enable on switch host port 1 = igmp snoop is enabled. all the igmp packets are forwarded to the switch host port. 0 = igmp snoop is disabled. 13 0 rw ipv6 mld snooping enable 1 = enable ipv6 mld snooping 12 0 rw ipv6 mld snooping option 1 = enable ipv6 mld snooping option 11 0 rw priority scheme select 0 = always tx higher priority packets first. 1 = weighted fair queueing enabled. when all f our queues have packets waiting to transmit, the bandwidth allocation is q3:q2:q1:a0 = 8:4:2:1. if any queues are empty, the highest non-empty queu e gets one more weighting. for example, if q2 is empty, q3:q1:q0 becomes (8+1): 0:2:1. 10-9 0x0 rw reserved 8 0 rw sniff mode select 1 =performs rx and tx sniff (both the sour ce port and destination port need to match). 0 = performs rx or tx sniff (either the source port or destination port needs to match). this is the mode used to implement rx only sniff. 7 1 rw unicast port-vlan mismatch discard 1 = no packets can cross the vlan boundary. 0 = unicast packets (excluding unknown/multicast/broadcast) can cross the vlan boundary. 6 1 rw multicast storm protection disable 1 = ?broadcast storm protection? does not incl ude multicast packets. only da = ffffffffffff packets are regulated. 0 = ?broadcast storm protection? includes da = ffffffffffff and da[40] = 1 packets. 5 1 rw back pressure mode 1 = carrier sense-based back pressure is selected. 0 = collision-based back pressure is selected. 4 1 rw flow control and back pressure fair mode 1 = fair mode is selected. in this mode, if a flow control port and a non-flow control port talk to the same destination port, packets from the non-flow control port may be dropped. this prevents the flow control port from being flow controlled for an extended period of time. 0 = in this mode, if a flow control port and a non- flow control port talk to the same destination port, the flow control port is flow controlled. this may not be ?fair? to the flow control port. 3 0 rw no excessive collision drop 1 = the switch does not drop packets when 16 or more collisions occur. 0 = the switch drops packets when 16 or more collisions occur. 2 0 rw huge packet support 1 = accepts packet sizes up to 1916 bytes (inclusive). this bit setting overrides setting from bit 1 of the same register. 0 = the max packet size is determ ined by bit 1 of this register.
micrel, inc. ksz8862-16/32mql april 2007 71 m9999-040407-3.0 bit default r/w description 1 0 rw legal maximum packet size check enable 0 = accepts packet sizes up to 1536 bytes (inclusive). 1 = 1522 bytes for tagged packets, 1518 bytes for untagged packets. any packets larger than the specified value are dropped. 0 1 rw priority buffer reserve 1 = each port is pre-allocated 48 buffers, used exclus ively for high priority (q3, q2, and q1) packets. effective only when the multiple queue feature is turned on. 0 = each port is pre-allocated 48 buffers used fo r all priority packets (q3, q2,q1, and q0). bank 32 switch global control register 3 (0x06): sgcr3 this register contains the global control for the switch function. bit default r/w description 15-8 0x63 rw broadcast storm protect ion rate bit [7:0] these bits, along with sgcr3[2:0], determine how many 64-byte blocks of packet data are allowed on an input port in a preset period. the period is 67ms for 100bt or 670ms for 10bt. the default is 1%. 7 0 rw reserved 6 0 rw switch host half-duplex mode 1 = enable host port interface half-duplex mode. 0 = enable host port interface full-duplex mode. 5 0 rw switch flow control enable 1 = enable full-duplex flow control on switch host port. 0 = disable full-duplex flow control on switch host port. 4 0 rw reserved 3 0 rw null vid replacement 1 = replaces null vid with port vid(12 bits). 0 = no replacement for null vid. 2-0 0x0 rw broadcast storm protection rate bit [10:8] these bits, along with sgcr3[15:8] determine how ma ny 64-byte blocks of packet data are allowed on an input port in a preset period. the period is 67ms for 100bt or 670ms for 10bt. the default is 1%. rate: 148,800 frames/sec * 67 ms/interval * 1% = 99 frames/interval (approx.) = 0x63. bank 32 switch global control register 4 (0x08): sgcr4 this register contains the global control for the switch function. bit default r/w description 15-0 0x2400 rw reserved
micrel, inc. ksz8862-16/32mql april 2007 72 m9999-040407-3.0 bank 32 switch global control register 5 (0x0a): sgcr5 this register contains the global control for the switch function. bit default r/w description 15 0 rw ledsel1 see the description in bit 9. 14-12 0x0 rw reserved 11-10 0x2 rw reserved 9 0 rw ledsel0 these two bits, ledsel1 and ledsel0, are used to select led mode. port n led indicators, (where n = 1 for port 1 and n =2 for port 2) defined as below: [ledsel1, ledsel0] [0, 0] [0, 1] pnled3 ------ ------ pnled2 link/act 100link/act pnled1 full_dpx/col 10link/act pnled0 speed full_dpx [ledsel1, ledsel0] [1, 0] [1, 1] pnled3 act ------ pnled2 link ------ pnled1 full_dpx/col ------ pnled0 speed ------ 8 0 rw reserved 7-0 0x35 rw reserved
micrel, inc. ksz8862-16/32mql april 2007 73 m9999-040407-3.0 bank 33 switch global control register 6 (0x00): sgcr6 bit default r/w description 15-14 0x3 r/w tag_0x7 ieee 802.1p mapping. the value in this field is used as the frame?s priority when its ieee tag has a value of 0x7. 13-12 0x3 r/w tag_0x6 ieee 802.1p mapping. the value in this field is used as the frame?s priority when its ieee tag has a value of 0x6. 11-10 0x2 r/w tag_0x5 ieee 802.1p mapping. the value in this field is used as the frame?s priority when its ieee tag has a value of 0x5. 9-8 0x2 r/w tag_0x4 ieee 802.1p mapping. the value in this field is used as the frame?s priority when its ieee tag has a value of 0x4. 7-6 0x1 r/w tag_0x3 ieee 802.1p mapping. the value in this field is used as the frame?s priority when its ieee tag has a value of 0x3. 5-4 0x1 r/w tag_0x2 ieee 802.1p mapping. the value in this field is used as the frame?s priority when its ieee tag has a value of 0x2. 3-2 0x0 r/w tag_0x1 ieee 802.1p mapping. the value in this field is used as the frame?s priority when its ieee tag has a value of 0x1. 1-0 0x0 r/w tag_0x0 ieee 802.1p mapping. the value in this field is used as the frame?s priority when its ieee tag has a value of 0x0. bank 33 switch global control register 7 (0x02): sgcr7 bit default r/w description 15-8 0x00 r/w reserved 7 0 r/w unknown default port enable send packets with unknown destination address to specified ports in bits [2:0]. 1 = enable to send unknown da packet 6-3 - r/w reserved 2-0 0x7 r/w unknown packet default port(s) specify which ports to send packets with unknown destination addresses. feature is enabled by bit [7]. bit 2 for the host port, bit 1 for port 2, and bit 0 for port 1 banks 34 ? 38: reserved except bank select register (0xe)
micrel, inc. ksz8862-16/32mql april 2007 74 m9999-040407-3.0 bank 39 mac address register 1 (0x00): macar1 this register contains the mac address for the switch function. this mac address is used for sending pause frame. bit default r/w description 15-0 0x0010 rw maca[47:32] specifies mac address 1. this value has to be same as marh in bank2. bank 39 mac address register 2 (0x02): macar2 this register contains the mac address for the switch function. this mac address is used for sending pause frame. bit default r/w description 15-0 0xa1ff rw maca[31:16] specifies mac address 2. this value has to be same as marm in bank2. bank 39 mac address register 3 (0x04): macar3 this register contains the mac address for the switch function. this mac address is used for sending pause frame. bit default r/w description 15-0 0xffff rw maca[15:0] specifies mac address 3. this value has to be same as marl in bank2. bank 40 tos priority control register 1 (0x00): tosr1 the ipv4/ipv6 tos priority control registers implement a fully decoded,128-bit dscp (differentiated services code point) register used to determine priority from the 6-bit tos (type of service) field in the ip header . the most significant 6 bits of the tos field are fully dec oded into 64 possibilitie s, and the singular code that results is compared against the corresponding bits in the dscp register to determine the priority. this register contains the tos priori ty control for the switch function. bit default r/w description 15-14 0 rw dscp[15:14] the value in this field is used as the frame?s pr iority when bits [7:2] of it ip tos/diffserv/traffic class value is 0x1c. 13-12 0 r/w dscp[13:12] the value in this field is used as the frame?s pr iority when bits [7:2] of it ip tos/diffserv/traffic class value is 0x18. 11-10 0 r/w dscp[11:10] the value in this field is used as the frame?s pr iority when bits [7:2] of it ip tos/diffserv/traffic class value is 0x14. 9-8 0 r/w dscp[9:8] the value in this field is used as the frame?s pr iority when bits [7:2] of it ip tos/diffserv/traffic class value is 0x10. 7-6 0 r/w dscp[7:6] the value in this field is used as the frame?s pr iority when bits [7:2] of it ip tos/diffserv/traffic class value is 0x0c. 5-4 0 r/w dscp[5:4] the value in this field is used as the frame?s pr iority when bits [7:2] of it ip tos/diffserv/traffic class value is 0x08. 3-2 0 r/w dscp[3:2] the value in this field is used as the frame?s pr iority when bits [7:2] of it ip tos/diffserv/traffic class value is 0x04. 1-0 0 r/w dscp[1:0] the value in this field is used as the frame?s pr iority when bits [7:2] of it ip tos/diffserv/traffic class value is 0x00.
micrel, inc. ksz8862-16/32mql april 2007 75 m9999-040407-3.0 bank 40 tos priority control register 2 (0x02): tosr2 this register contains the tos priori ty control for the switch function. bit default r/w description 15-14 0 rw dscp[31:30] the value in this field is used as the frame?s prior ity when bits [7:2] of it ip tos/diffserv/traffic class value is 0x3c. 13-12 0 r/w dscp[29:28] the value in this field is used as the frame?s prior ity when bits [7:2] of it ip tos/diffserv/traffic class value is 0x38. 11-10 0 r/w dscp[27:26] the value in this field is used as the frame?s prio rity when bits [7:2] of it ip tos/diffserv/traffic class value is 0x34. 9-8 0 r/w dscp[25:24] the value in this field is used as the frame?s prior ity when bits [7:2] of it ip tos/diffserv/traffic class value is 0x30. 7-6 0 r/w dscp[23:22] the value in this field is used as the frame?s prior ity when bits [7:2] of it ip tos/diffserv/traffic class value is 0x2c. 5-4 0 r/w dscp[21:20] the value in this field is used as the frame?s prior ity when bits [7:2] of it ip tos/diffserv/traffic class value is 0x28. 3-2 0 r/w dscp[19:18] the value in this field is used as the frame?s prior ity when bits [7:2] of it ip tos/diffserv/traffic class value is 0x24. 1-0 0 r/w dscp[17:16] the value in this field is used as the frame?s prior ity when bits [7:2] of it ip tos/diffserv/traffic class value is 0x20. bank 40 tos priority control register 3 (0x04): tosr3 this register contains the tos priori ty control for the switch function. bit default r/w description 15-14 0 rw dscp[47:46] the value in this field is used as the frame?s pr iority when bits [7:2] of it ip tos/diffserv/traffic class value is 0x5c. 13-12 0 r/w dscp[45:44] the value in this field is used as the frame?s pr iority when bits [7:2] of it ip tos/diffserv/traffic class value is 0x58. 11-10 0 r/w dscp[43:42] the value in this field is used as the frame?s pr iority when bits [7:2] of it ip tos/diffserv/traffic class value is 0x54. 9-8 0 r/w dscp[41:40] the value in this field is used as the frame?s pr iority when bits [7:2] of it ip tos/diffserv/traffic class value is 0x50. 7-6 0 r/w dscp[39:38] the value in this field is used as the frame?s pr iority when bits [7:2] of it ip tos/diffserv/traffic class value is 0x4c. 5-4 0 r/w dscp[37:36] the value in this field is used as the frame?s pr iority when bits [7:2] of it ip tos/diffserv/traffic class value is 0x48. 3-2 0 r/w dscp[35:34] the value in this field is used as the frame?s pr iority when bits [7:2] of it ip tos/diffserv/traffic class value is 0x44. 1-0 0 r/w dscp[33:32] the value in this field is used as the frame?s pr iority when bits [7:2] of it ip tos/diffserv/traffic class value is 0x40.
micrel, inc. ksz8862-16/32mql april 2007 76 m9999-040407-3.0 bank 40 tos priority control register 4 (0x06): tosr4 this register contains the tos priori ty control for the switch function. bit default r/w description 15-14 0 rw dscp[63:62] the value in this field is used as the frame?s pr iority when bits [7:2] of it ip tos/diffserv/traffic class value is 0x7c. 13-12 0 r/w dscp[61:60] the value in this field is used as the frame?s pr iority when bits [7:2] of it ip tos/diffserv/traffic class value is 0x78. 11-10 0 r/w dscp[59:58] the value in this field is used as the frame?s pr iority when bits [7:2] of it ip tos/diffserv/traffic class value is 0x74. 9-8 0 r/w dscp[57:56] the value in this field is used as the frame?s pr iority when bits [7:2] of it ip tos/diffserv/traffic class value is 0x70. 7-6 0 r/w dscp[55:54] the value in this field is used as the frame?s pr iority when bits [7:2] of it ip tos/diffserv/traffic class value is 0x6c. 5-4 0 r/w dscp[53:52] the value in this field is used as the frame?s pr iority when bits [7:2] of it ip tos/diffserv/traffic class value is 0x68. 3-2 0 r/w dscp[51:50] the value in this field is used as the frame?s pr iority when bits [7:2] of it ip tos/diffserv/traffic class value is 0x64. 1-0 0 r/w dscp[49:48] the value in this field is used as the frame?s pr iority when bits [7:2] of it ip tos/diffserv/traffic class value is 0x60. bank 40 tos priority control register 5 (0x08): tosr5 this register contains the tos priori ty control for the switch function. bit default r/w description 15-14 0 rw dscp[79:78] the value in this field is used as the frame?s prior ity when bits [7:2] of it ip tos/diffserv/traffic class value is 0x9c. 13-12 0 r/w dscp[77:76] the value in this field is used as the frame?s prio rity when bits [7:2] of it ip tos/diffserv/traffic class value is 0x98. 11-10 0 r/w dscp[75:74] the value in this field is used as the frame?s prior ity when bits [7:2] of it ip tos/diffserv/traffic class value is 0x94. 9-8 0 r/w dscp[73:72] the value in this field is used as the frame?s prior ity when bits [7:2] of it ip tos/diffserv/traffic class value is 0x90. 7-6 0 r/w dscp[71:70] the value in this field is used as the frame?s prior ity when bits [7:2] of it ip tos/diffserv/traffic class value is 0x8c. 5-4 0 r/w dscp[69:68] the value in this field is used as the frame?s prior ity when bits [7:2] of it ip tos/diffserv/traffic class value is 0x88. 3-2 0 r/w dscp[67:66] the value in this field is used as the frame?s prior ity when bits [7:2] of it ip tos/diffserv/traffic class value is 0x84.
micrel, inc. ksz8862-16/32mql april 2007 77 m9999-040407-3.0 bit default r/w description 1-0 0 r/w dscp[65:64] the value in this field is used as the frame?s prior ity when bits [7:2] of it ip tos/diffserv/traffic class value is 0x80. bank 40 tos priority control register 6 (0x0a): tosr6 this register contains the tos priori ty control for the switch function. bit default r/w description 15-14 0 rw dscp[95:94] the value in this field is used as the frame?s pr iority when bits [7:2] of it ip tos/diffserv/traffic class value is 0xbc. 13-12 0 r/w dscp[93:92] the value in this field is used as the frame?s pr iority when bits [7:2] of it ip tos/diffserv/traffic class value is 0xb8. 11-10 0 r/w dscp[91:90] the value in this field is used as the frame?s pr iority when bits [7:2] of it ip tos/diffserv/traffic class value is 0xb4. 9-8 0 r/w dscp[89:88] the value in this field is used as the frame?s pr iority when bits [7:2] of it ip tos/diffserv/traffic class value is 0xb0. 7-6 0 r/w dscp[87:86] the value in this field is used as the frame?s pr iority when bits [7:2] of it ip tos/diffserv/traffic class value is 0xac. 5-4 0 r/w dscp[85:84] the value in this field is used as the frame?s pr iority when bits [7:2] of it ip tos/diffserv/traffic class value is 0xa8. 3-2 0 r/w dscp[83:82] the value in this field is used as the frame?s pr iority when bits [7:2] of it ip tos/diffserv/traffic class value is 0xa4. 1-0 0 r/w dscp[81:80] the value in this field is used as the frame?s pr iority when bits [7:2] of it ip tos/diffserv/traffic class value is 0xa0. bank 41 tos priority control register 7 (0x00): tosr7 this register contains the tos priori ty control for the switch function. bit default r/w description 15-14 0 rw dscp[111:110] the value in this field is used as the frame?s prior ity when bits [7:2] of it ip tos/diffserv/traffic class value is 0xdc. 13-12 0 r/w dscp[109:108] the value in this field is used as the frame?s prior ity when bits [7:2] of it ip tos/diffserv/traffic class value is 0xd8. 11-10 0 r/w dscp[107:106] the value in this field is used as the frame?s prior ity when bits [7:2] of it ip tos/diffserv/traffic class value is 0xd4. 9-8 0 r/w dscp[105:104] the value in this field is used as the frame?s prior ity when bits [7:2] of it ip tos/diffserv/traffic class value is 0xd0. 7-6 0 r/w dscp[103:102] the value in this field is used as the frame?s prior ity when bits [7:2] of it ip tos/diffserv/traffic class value is 0xcc.
micrel, inc. ksz8862-16/32mql april 2007 78 m9999-040407-3.0 bit default r/w description 5-4 0 r/w dscp[101:100] the value in this field is used as the frame?s prior ity when bits [7:2] of it ip tos/diffserv/traffic class value is 0xc8. 3-2 0 r/w dscp[99:98] the value in this field is used as the frame?s prior ity when bits [7:2] of it ip tos/diffserv/traffic class value is 0xc4. 1-0 0 r/w dscp[97:96] the value in this field is used as the frame?s prior ity when bits [7:2] of it ip tos/diffserv/traffic class value is 0xc0. bank 41 tos priority control register 8 (0x02): tosr8 this register contains the tos priori ty control for the switch function. bit default r/w description 15-14 0 rw dscp[127:126] the value in this field is used as the frame?s pr iority when bits [7:2] of it ip tos/diffserv/traffic class value is 0xfc 13-12 0 r/w dscp[125:124] the value in this field is used as the frame?s pr iority when bits [7:2] of it ip tos/diffserv/traffic class value is 0xf8. 11-10 0 r/w dscp[123:122] the value in this field is used as the frame?s pr iority when bits [7:2] of it ip tos/diffserv/traffic class value is 0xf4. 9-8 0 r/w dscp[121:120] the value in this field is used as the frame?s pr iority when bits [7:2] of it ip tos/diffserv/traffic class value is 0xf0. 7-6 0 r/w dscp[119:118] the value in this field is used as the frame?s pr iority when bits [7:2] of it ip tos/diffserv/traffic class value is 0xec. 5-4 0 r/w dscp[117:116] the value in this field is used as the frame?s pr iority when bits [7:2] of it ip tos/diffserv/traffic class value is 0xe8. 3-2 0 r/w dscp[115:114] the value in this field is used as the frame?s pr iority when bits [7:2] of it ip tos/diffserv/traffic class value is 0xe4. 1-0 0 r/w dscp[113:112] the value in this field is used as the frame?s pr iority when bits [7:2] of it ip tos/diffserv/traffic class value is 0xe0. bank 42 indirect access control register (0x00): iacr this register contains the indirect control for the switch function. bit default r/w description 15-13 0x0 rw reserved 12 0 rw read high. write low 1 = read cycle. 0 = write cycle. 11-10 0x0 rw table select 00 = static mac address table selected. 01 = vlan table selected. 10 = dynamic address table selected. 11 = mib counter selected.
micrel, inc. ksz8862-16/32mql april 2007 79 m9999-040407-3.0 bit default r/w description 9-0 0x000 rw indirect address bit 9-0 of indirect address. note: write iacr triggers a command. read or writ e access is determined by register bit 12. bank 42 indirect access data register 1 (0x02): iadr1 this register contains the indire ct data for the switch function. bit default r/w description 15-8 0x00 ro reserved 7 0 ro cpu read status only for dynamic and statistics counter reads. 1 = read is still in progress. 0 = read has completed. 6-3 0x0 ro reserved 2-0 0x0 ro indirect data bit 66-64 of indirect data. bank 42 indirect access data register 2 (0x04): iadr2 this register contains the indire ct data for the switch function. bit default r/w description 15-0 0x0000 rw indirect data bit 47-32 of indirect data. bank 42 indirect access data register 3 (0x06): iadr3 this register contains the indire ct data for the switch function. bit default r/w description 15-0 0x0000 rw indirect data bit 63-48 of indirect data. bank 42 indirect access data register 4 (0x08): iadr4 this register contains the indire ct data for the switch function. bit default r/w description 15-0 0x0000 rw indirect data bit 15-0 of indirect data. bank 42 indirect access data register 5 (0x0a): iadr5 this register contains the indire ct data for the switch function. bit default r/w description 15-0 0x0000 rw indirect data bit 31-16 of indirect data. bank 43: reserved except bank select register (0xe)
micrel, inc. ksz8862-16/32mql april 2007 80 m9999-040407-3.0 bank 44 digital testing stat us register (0x00): dtsr this register contains the user defined register for the switch function. bit default r/w description 15-3 0x0000 ro reserved 2-0 0x0 ro reserved bank 44 analog testing status register (0x02): atsr this register contains the user defined register for the switch function. bit default r/w description 15-8 0x00 ro reserved 7-0 0x00 ro reserved bank 44 digital testing control register (0x04): dtcr this register contains the user defined register for the switch function. bit default r/w description 15-8 0x00 ro reserved 7-0 0x3f rw reserved bank 44 analog testing control register 0 (0x06): atcr0 this register contains the user defined register for the switch function. bit default r/w description 15-8 0x00 ro reserved 7-6 0x00 rw led driver current set 00 = 60 ma 01 = 80 ma 10 = 97 ma 11 = 40 ma 5-0 0x00 rw reserved bank 44 analog testing control register 1 (0x08): atcr1 this register contains the user defined register for the switch function. bit default r/w description 15-0 0x0000 rw reserved bank 44 analog testing control register 2 (0x0a): atcr2 this register contains the user defined register for the switch function. bit default r/w description 15-0 0x0000 rw reserved bank 45 phy 1 mii-register basic control register (0x00): p1mbcr this register contains medi a independent interface (mii) register for sw itch port 1 as defined in the ieee 802.3 specification. bit default r/w description bit is same as: 15 0 ro soft reset not supported. 14 0 rw far-end loopback 1 = perform loopback as follows: start: rxp2/rxm2 (port 2) loop back: pmd/pma of port 1?s phy end: txp2/txm2 (port 2) bank 49 0x02 bit 8
micrel, inc. ksz8862-16/32mql april 2007 81 m9999-040407-3.0 bit default r/w description bit is same as: 0 = normal operation. 13 0 rw force 100 1 = force 100mbps if an is disabled (bit 12) 0 = force 10mbps if an is disabled (bit 12) bank 49 0x02 bit 6 12 1 rw an enable (note 1) 1 = auto-negotiation enabled. 0 = auto-negotiation disabled. bank 49 0x02 bit 7 11 0 rw power-down 1 = power-down. 0 = normal operation. bank 49 0x02 bit 11 10 0 ro isolate not supported. 9 0 rw restart an (note 1) 1 = restart auto-negotiation. 0 = normal operation. bank 49 0x02 bit 13 8 0 rw force full duplex 1 = force full duplex. 0 = force half duplex. if an is disabled (bit 12) or an is enabled but failed. bank 49 0x02 bit 5 7 0 ro collision test not supported. 6 0 ro reserved. 5 1 r/w hp_mdix 1 = hp auto mdi-x mode. 0 = micrel auto mdi-x mode. bank 49 0x04 bit 15 4 0 rw force mdi-x 1 = force mdi-x. 0 = normal operation. bank 49 0x02 bit 9 3 0 rw disable mdi-x 1 = disable auto mdi-x. 0 = normal operation. bank 49 0x02 bit 10 2 0 rw disable far-end-fault 1 = disable far-end-fault detection. 0 = normal operation. bank 49 0x02 bit 12 1 0 rw disable transmit 1 = disable transmit. 0 = normal operation. bank 49 0x02 bit 14 0 0 rw disable led 1 = disable led. 0 = normal operation. bank 49 0x02 bit 15 note 1: auto negotiation is not supporting on port 1.
micrel, inc. ksz8862-16/32mql april 2007 82 m9999-040407-3.0 bank 45 phy 1 mii-register basic status register (0x02): p1mbsr this register contains the mii register status for the switch port 1 function. bit default r/w description bit is same as: 15 0 ro t4 capable 1 = 100 base-t4 capable. 0 = not 100 base-t4 capable. 14 1 ro 100 full capable 1 = 100base-tx full-duplex capable. 0 = not 100base-tx full duplex capable. 13 1 ro 100 half capable 1 = 100base-tx half-duplex capable. 0 = not 100base-tx half-duplex capable. 12 1 ro 10 full capable 1 = 10base-t full-duplex capable. 0 = not 10base-t full-duplex capable. 11 1 ro 10 half capable 1 = 10base-t half-duplex capable. 0 = not 10base-t half-duplex capable. 10-7 0x0 ro reserved 6 0 ro preamble suppressed not supported. 5 0 ro reserved bank 49 0x04 bit 6 4 0 ro far-end-fault 1 = far-end-fault detected. 0 = no far-end-fault detected. bank 49 0x04 bit 8 3 1 ro reserved 2 0 ro link status 1 = link is up. 0 = link is down. bank49 0x04 bit 5 1 0 ro jabber test not supported. 0 0 ro extended capable 1 = extended register capable. 0 = not extended register capable. bank 45 phy 1 phyid low register (0x04): phy1ilr this register contains the phy id (l ow) for the switch port 1 function. bit default r/w description 15-0 0x1430 ro phyid low low order phyid bits. bank 45 phy 1 phyid high register (0x06): phy1ihr this register contains the phy id (h igh) for the switch port 1 function. bit default r/w description 15-0 0x0022 ro phyid high high order phyid bits.
micrel, inc. ksz8862-16/32mql april 2007 83 m9999-040407-3.0 bank 45 phy 1 auto-negotiation adve rtisement register (0x08): p1anar this register contains the auto-negotiation adv ertisement for the switch port 1 function. bit default r/w description bit is same as: 15 0 ro next page not supported. 14 0 ro reserved 13 0 ro remote fault not supported. 12-11 0x0 ro reserved 10 1 rw pause (flow control capability) 1 = advertise pause ability. 0 = do not advertise pause capability. bank 49 0x02 bit 4 9 0 rw reserved 8 1 rw adv 100 full 1 = advertise 100 full-duplex capable. 0 = do not advertise 100 full-duplex capability. bank49 0x02 bit 3 7 1 rw adv 100 half 1= advertise 100 half-duplex capable. 0 = do not advertise 100 half-duplex capability. bank49 0x02 bit 2 6 1 rw adv 10 full 1 = advertise 10 full-duplex capable. 0 = do not advertise 10 full-duplex capability. bank49 0x02 bit 1 5 1 rw adv 10 half 1 = advertise 10 half-duplex capable. 0 = do not advertise 10 half-duplex capability. bank49 0x02 bit 0 4-0 0x01 ro selector field 802.3 bank 45 phy 1 auto-negotiation link pa rtner ability register (0x0a): p1anlpr this register contains the aut o-negotiation link partner ability fo r the switch port 1 function. bit default r/w description bit is same as: 15 0 ro next page not supported. 14 0 ro lp ack not supported. 13 0 ro remote fault not supported. 12-11 0x0 ro reserved 10 0 ro pause link partner pause capability. bank 49 0x04 bit 4 9 0 ro reserved 8 0 ro adv 100 full link partner 100 full capability. bank 49 0x04 bit 3 7 0 ro adv 100 half link partner 100 half capability. bank 49 0x04 bit 2 6 0 ro adv 10 full link partner 10 full capability. bank 49 0x04 bit 1 5 0 ro adv 10 half link partner 10 half capability. bank 49 0x04 bit 0 4-0 0x01 ro reserved
micrel, inc. ksz8862-16/32mql april 2007 84 m9999-040407-3.0 bank 46 phy 2 mii-register basic control register (0x00): p2mbcr this register contains medi a independent interface (mii) c ontrol for the switch functi on as defined in the ieee 802.3 specification. bit default r/w description bit is same as: 15 0 ro soft reset not supported. 14 0 rw far-end loopback 1 = perform loop back, as indicated (see figure14): start: rxp1/rxm1 (port 1) loop back: pmd/pma of port 2?s phy end: txp1/txm1 (port 1) 0 = normal operation. bank 51 0x02 bit 8 13 0 rw force 100 1 = 100 mbps. 0 = 10 mbps. bank 51 0x02 bit 6 12 1 rw an enable 1 = auto-negotiation enabled. 0 = auto-negotiation disabled. bank 51 0x02 bit 7 11 0 rw power down 1 = power down. 0 = normal operation. bank 51 0x02 bit 11 10 0 ro isolate not supported. 9 0 rw restart an 1 = restart auto-negotiation. 0 = normal operation, bank 51 0x02 bit 13 8 0 rw force full duplex 1 = full duplex. 0 = half duplex. bank 51 0x02 bit 5 7 0 ro collision test not supported. 6 0 ro reserved 5 1 r/w hp_mdix 1 = hp auto mdi-x mode. 0 = micrel auto mdi-x mode. bank 51 0x04 bit 15 4 0 rw force mdi-x 1 = force mdi-x. 0 = normal operation. bank 51 0x02 bit 9 3 0 rw disable mdi-x 1 = disable auto mdi-x. 0 = normal operation. bank 51 0x02 bit 10 2 0 rw reserved bank 51 0x02 bit 12 1 0 rw disable transmit 1 = disable transmit. 0 = normal operation. bank 51 0x02 bit 14 0 0 rw disable led 1 = disable led. 0 = normal operation. bank 51 0x02 bit 15
micrel, inc. ksz8862-16/32mql april 2007 85 m9999-040407-3.0 bank 46 phy 2 mii-register basic status register (0x02): p2mbsr this register contains the mii regist er for the switch port 2 function. bit default r/w description bit is same as: 15 0 ro t4 capable 0 = not 100 base-t4 capable. 14 1 ro 100 full capable 1 = 100base-tx full-duplex capable. 0 = not 100base-tx full-duplex capable. 13 1 ro 100 half capable 1 = 100base-tx half-duplex capable. 0 = not 100base-tx half-duplex capable. 12 1 ro 10 full capable 1 = 10base-t full-duplex capable. 0 = not 10base-t full-duplex capable. 11 1 ro 10 half capable 1 = 10base-t half-duplex capable. 0 = not 10base-t half-duplex capable. 10-7 0x0 ro reserved 6 0 ro preamble suppressed not supported. 5 0 ro an complete 1 = auto-negotiation complete. 0 = auto-negotiation not complete. bank 51 0x04 bit 6 4 0 ro reserved bank 51 0x04 bit 8 3 1 ro an capable 1 = auto-negotiation capable. 0 = not auto-negotiation capable. 2 0 ro link status 1 = link is up. 0 = link is down. bank 51 0x04 bit 5 1 0 ro jabber test not supported. 0 0 ro extended capable 0 = not extended register capable. bank 46 phy 2 phyid low register (0x04): phy2ilr this register contains the phy id (low) for the switch port 2 function. bit default r/w description 15-0 0x1430 ro phyid low low order phyid bits. bank 46 phy 2 phyid high register (0x06): phy2ihr this register contains the phy id (h igh) for the switch port 2 function. bit default r/w description 15-0 0x0022 ro phyid high high order phyid bits.
micrel, inc. ksz8862-16/32mql april 2007 86 m9999-040407-3.0 bank 46 phy 2 auto-negotiation adve rtisement register (0x08): p2anar this register contains the auto-negotiation adv ertisement for the switch port 2 function. bit default r/w description bit is same as: 15 0 ro next page not supported. 14 0 ro reserved 13 0 ro remote fault not supported. 12-11 0x0 ro reserved 10 1 rw pause 1 = advertise pause capability. 0 = do not advertise pause capability. bank 51 0x02 bit 4 9 0 rw reserved 8 1 rw adv 100 full 1 = advertise 100 full-duplex capability. 0 = do not advertise 100 full-duplex capability. bank 51 0x02 bit 3 7 1 rw adv 100 half 1 = advertise 100 half-duplex capability. 0 = do not advertise 100 half-duplex capability. bank 51 0x02 bit 2 6 1 rw adv 10 full 1 = advertise 10 full-duplex capability. 0 = do not advertise 10 full-duplex capability. bank 51 0x02 bit 1 5 1 rw adv 10 half 1= advertise 10 half-duplex capability. 0 = do not advertise 10 half-duplex capability. bank 51 0x02 bit 0 4-0 0x01 ro selector field 802.3 bank 46 phy 2 auto-negotiation link pa rtner ability register (0x0a): p2anlpr this register contains the aut o-negotiation link partner ability fo r the switch port 2 function. bit default r/w description bit is same as: 15 0 ro next page not supported. 14 0 ro lp ack not supported. 13 0 ro remote fault not supported. 12-11 0x0 ro reserved 10 0 ro pause link partner pause capability. bank 51 0x04 bit 4 9 0 ro reserved 8 0 ro adv 100 full link partner 100 full capability. bank 51 0x04 bit 3 7 0 ro adv 100 half link partner 100 half capability. bank 51 0x04 bit 2 6 0 ro adv 10 full link partner 10 full capability. bank 51 0x04 bit 1 5 0 ro adv 10 half link partner 10 half capability. bank 51 0x04 bit 0 4-0 0x01 ro reserved
micrel, inc. ksz8862-16/32mql april 2007 87 m9999-040407-3.0 bank 47 phy1 special control/s tatus register (0x02): p1phyctrl this register contains the contro l and status information of phy1. bit default r/w description bit is same as: 15-6 0x000 ro reserved 5 0 ro polarity reverse (polrvs) 1 = polarity is reversed. 0 = polarity is not reversed. bank 49 0x04 bit 13 4 0 ro mdi-x status (mdix_st) 1 = mdi 0 = mdi-x bank 49 0x04 bit 7 3 0 rw force link (force_lnk) 1 = force link pass. 0 = normal operation. bank 49 0x00 bit 11 2 1 rw power saving (pwrsave) 1 = disable power saving. 0 = enable power saving. bank 49 0x00 bit 10 1 0 rw remote (near-end) loopback (rlb) 1 = perform remote loopback at port 1's phy (rxp1/rxm1 -> txp1/txm1, see figure 15) 0 = normal operation bank 49 0x00 bit 9 0 0 rw reserved bank 47 phy2 linkmd ? control/status (0x04): p2vct this register contains the linkmd ? control and status information of phy 2. bit default r/w description bit is same as: 15 0 (self- clear) rw vct_enable 1 = the cable diagnostic test is enabled. it is self-cleared after the vct test is done. 0 = it indicates the cable diagnos tic test is completed and the status information is valid for read. bank 51 0x00 bit 12 14-13 0x0 ro vct_result [00] = normal condition. [01] = open condition detected in the cable. [10] = short condition detected in the cable. [11] = cable diagnostic test failed. bank 51 0x00 bit 14-13 12 - ro vct 10m short 1 = less than 10m short. bank 51 0x00 bit 15 11-9 0x0 ro reserved 8-0 0x000 ro vct_fault_count distance to the fault. the distance is approximately 0.4m*vct_fault_count. bank 51 0x00 bit 8-0
micrel, inc. ksz8862-16/32mql april 2007 88 m9999-040407-3.0 bank 47 phy2 special control/s tatus register (0x06): p2phyctrl this register contains the contro l and status information of phy2. bit default r/w description bit is same as: 15-6 0x000 ro reserved 5 0 ro polarity reverse (polrvs) 1 = polarity is reversed. 0 = polarity is not reversed. bank 51 0x04 bit 13 4 0 ro mdix status (mdix_st) 1 = mdi 0 = mdi-x bank 51 0x04 bit 7 3 0 rw force link (force_lnk) 1 = force link pass. 0 = normal operation. bank 51 0x00 bit 11 2 1 rw power saving (pwrsave) 1 = disable power saving. 0 = enable power saving. bank 51 0x00 bit 10 1 0 rw remote (near-end) loopback (rlb) 1 = perform remote loopback at port 2's phy(rxp2/rxm2 -> txp2/txm2. see figure 15) 0 = normal operation bank 51 0x00 bit 9 0 0 rw reserved bank 48 port 1 control register 1 (0x00): p1cr1 this register contains the global per port control for the switch function. bit default r/w description 15-8 0x00 ro reserved 7 0 rw broadcast storm protection enable 1 = enable broadcast storm protection for ingress packets on the port. 0 = disable broadcast storm protection. 6 0 rw diffserv priority classification enable 1= enable diffserv priority classification for ingress packets on the port. 0 = disable diffserv function. 5 0 rw 802.1p priority classification enable 1= enable 802.1p priority classification for ingress packets on the port. 0 = disable 802.1p. 4-3 0x0 rw port-based priority classification 00 - ingress packets on port are classified as priority 0 queue if ?diffserv? or ?802.1p? classification is not enabled or fails to classify. 01 - ingress packets on port are classified as priority 1 queue if ?diffserv? or ?802.1p? classification is not enabled or fails to classify. 10 - ingress packets on port are classified as priority 2 queue if ?diffserv? or ?802.1p? classification is not enabled or fails to classify. 11 - ingress packets on port are classified as priority 3 queue if ?diffserv? or ?802.1p? classification is not enabled or fails to classify. note: ?diffserv?, ?802.1p? and port priority can be enabled at the same time. the or?ed result of 802.1p and dscp overwrites the port priority. 2 0 rw tag insertion 1 = when packets are output on the port, the switch adds 802.1p/q tags to packets without 802.1p/q tags when received. the switch will not add tags to packets already tagged. the tag inserted is the ingress port?s ?port vid?. 0 = disable tag insertion.
micrel, inc. ksz8862-16/32mql april 2007 89 m9999-040407-3.0 bit default r/w description 1 0 rw tag removal 1 = when packets are output on the port, the swit ch removes 802.1p/q tags from packets with 802.1p/q tags when received. the switch w ill not modify packets received without tags. 0 = disable tag removal. 0 0 rw tx multiple queues select enable 1 = the port output queue is split into four priority queues. 0 = single output queue on the port. there is no prio rity differentiation even though packets are classified into high or low priority. bank 48 port 1 control register 2 (0x02): p1cr2 this register contains the global per port control for the switch function. bit default r/w description 15 0 rw reserved 14 0 rw ingress vlan filtering 1= the switch discards packets whose vid port membership in vlan table bits [18:16] does not include the ingress port vid. 0 = no ingress vlan filtering. 13 0 rw discard non pvid packets 1 = the switch discards packets whose vid does not match the ingress port default vid. 0 = no packets are discarded. 12 0 rw force flow control 1 = always enable flow control on the port, regardless of an result. 0 = the flow control is enabled based on an result. 11 0 rw back pressure enable 1 = enable port?s half-duplex back pressure. 0 = disable port?s half-duplex back pressure. 10 1 rw transmit enable 1 = enable packet transmission on the port. 0 = disable packet transmission on the port. 9 1 rw receive enable 1 = enable packet reception on the port. 0 = disable packet reception on the port. 8 0 rw learning disable 1 = disable switch address learning capability. 0 = enable switch address learning. 7 0 rw sniffer port 1 = port is designated as a sniffer port and transmits packets that are monitored. 0 = port is a normal port. 6 0 rw receive sniff 1 = all packets received on the port are marked as ?monitored packets? and forwarded to the designated ?sniffer port.? 0 = no receive monitoring. 5 0 rw transmit sniff 1 = all packets transmitted on the port are mark ed as ?monitored packets? and forwarded to the designated ?sniffer port.? 0 = no transmit monitoring. 4 0 rw reserved
micrel, inc. ksz8862-16/32mql april 2007 90 m9999-040407-3.0 bit default r/w description 3 0 rw user priority ceiling 1 = if the packet?s ?priority field? is greater than t he ?user priority field? in t he port vid control register bit[15:13], replace the packet?s ?priority field? with the ?user priority field? in the port vid control register bit[15:13]. 0 = do no compare and replace the packet?s ?priority field.? 2-0 0x7 rw port vlan membership define the port?s port vlan membership. bit 2 stands for the host port, bit 1 for port 2, and bit 0 for port 1. the port can only communicate within the membership. a ?1? includes a port in the membership; a ?0? excludes a port from the membership. bank 48 port 1 vid control register (0x04): p1vidcr this register contains the global per port control for the switch function. bit default r/w description 15-13 0x0 rw default tag[15:13] port?s default tag, containi ng ?user priority field? bits. 12 0 rw default tag[12] port?s default tag, containing cfi bit. 11-0 0x001 rw default tag[11:0] port?s default tag, containing vid[11:0]. note: this vid control register serves two purposes: 1. associated with the ingress untagg ed packets, and used for egress tagging. 2. default vid for the ingress untagged or nu ll-vid-tagged packets, and used for address lookup. bank 48 port 1 control register 3 (0x06): p1cr3 bit default r/w description 15-5 0x000 ro reserved 4 0x0 rw reserved 3-2 0x0 rw ingress limit mode these bits determine what kinds of frames are limited and counted against ingress limiting as follows: 00 = limit and count all frames. 01 = limit and count broadcast, mult icast, and flooded unicast frames. 10 = limit and count broadcast and multicast frames only. 11 = limit and count broadcast frames only. 1 0 rw count ifg count ifg bytes. 1= each frame?s minimum inter frame gap. (ifg) bytes (12 per frame) are included in ingress and egress rate limiting calculations. 0= ifg bytes are not counted. 0 0 rw count preamble count preamble bytes. 1 = each frame?s preamble bytes (8 per frame) are included in ingress and egress rate limiting calculations. 0 = preamble bytes are not counted.
micrel, inc. ksz8862-16/32mql april 2007 91 m9999-040407-3.0 bank 48 port 1 ingress rate control register (0x08): p1ircr bit default r/w description 15-12 0x0 rw ingress pri3 rate priority 3 frames will be discarded after the ingress rate selected as shown below is reached or exceeded. 0000 = not limited (default) 0001 = 64kbps 0010 = 128kbps 0011 = 256kbps 0100 = 512kbps 0101 = 1mbps 0110 = 2mbps 0111 = 4mbps 1000 = 8mbps 1001 = 16mbps 1010 = 32mbps 1011 = 48mbps 1100 = 64 mbps 1101 = 72mbps 1110 = 80mbps 1111 = 88mbps note: for 10bt, rate settings above 10mbps are set to the default value 0000 (not limited). 11-8 0x0 rw ingress pri2 rate priority 2 frames will be discarded after the ingress rate selected as shown below is reached or exceeded. 0000 = not limited (default) 0001 = 64kbps 0010 = 128kbps 0011 = 256kbps 0100 = 512kbps 0101 = 1mbps 0110 = 2mbps 0111 = 4mbps 1000 = 8mbps 1001 = 16mbps 1010 = 32mbps 1011 = 48mbps 1100 = 64 mbps 1101 = 72mbps 1110 = 80mbps 1111 = 88mbps note: for 10bt, rate settings above 10mbps are set to the default value 0000 (not limited). 7-4 0x0 rw ingress pri1 rate priority 1 frames will be discarded after the ingress rate selected as shown below is reached or exceeded. 0000 = not limited (default) 0001 = 64kbps 0010 = 128kbps 0011 = 256kbps 0100 = 512kbps 0101 = 1mbps 0110 = 2mbps 0111 = 4mbps
micrel, inc. ksz8862-16/32mql april 2007 92 m9999-040407-3.0 bit default r/w description 1000 = 8mbps 1001 = 16mbps 1010 = 32mbps 1011 = 48mbps 1100 = 64 mbps 1101 = 72mbps 1110 = 80mbps 1111 = 88mbps note: for 10bt, rate settings above 10mbps are set to the default value 0000 (not limited). 3-0 0x0 rw ingress pri0 rate priority 0 frames will be discarded after the ingress rate selected as shown below is reached or exceeded. 0000 = not limited (default) 0001 = 64kbps 0010 = 128kbps 0011 = 256kbps 0100 = 512kbps 0101 = 1mbps 0110 = 2mbps 0111 = 4mbps 1000 = 8mbps 1001 = 16mbps 1010 = 32mbps 1011 = 48mbps 1100 = 64 mbps 1101 = 72mbps 1110 = 80mbps 1111 = 88mbps note: for 10bt, rate settings above 10mbps are set to the default value 0000 (not limited).
micrel, inc. ksz8862-16/32mql april 2007 93 m9999-040407-3.0 bank 48 port 1 egress rate control register (0x0a): p1ercr bit default r/w description 15-12 0x0 rw egress pri3 rate egress data rate limit for priority 3 frames. output traffic from this priority queue is shape d according to the egress rate selected below: 0000 = not limited (default) 0001 = 64kbps 0010 = 128kbps 0011 = 256kbps 0100 = 512kbps 0101 = 1mbps 0110 = 2mbps 0111 = 4mbps 1000 = 8mbps 1001 = 16mbps 1010 = 32mbps 1011 = 48mbps 1100 = 64 mbps 1101 = 72mbps 1110 = 80mbps 1111 = 88mbps notes: for 10bt, rate settings above 10mbps ar e set to the default value 0000 (not limited). when multiple queue select enable is off (only 1 queu e per port), rate limiting applies only to priority 0 queue. 11-8 0x0 rw egress pri2 rate egress data rate limit for priority 2 frames. output traffic from this priority queue is shape d according to the egress rate selected below: 0000 = not limited (default) 0001 = 64kbps 0010 = 128kbps 0011 = 256kbps 0100 = 512kbps 0101 = 1mbps 0110 = 2mbps 0111 = 4mbps 1000 = 8mbps 1001 = 16mbps 1010 = 32mbps 1011 = 48mbps 1100 = 64 mbps 1101 = 72mbps 1110 = 80mbps 1111 = 88mbps notes: for 10bt, rate settings above 10mbps ar e set to the default value 0000 (not limited). when multiple queue select enable is off (only 1 queu e per port), rate limiting applies only to priority 0 queue. 7-4 0x0 rw egress pri1 rate egress data rate limit for priority 1 frames. output traffic from this priority queue is sh aped according to the egress rate selected below: 0000 = not limited (default) 0001 = 64kbps 0010 = 128kbps 0011 = 256kbps 0100 = 512kbps 0101 = 1mbps
micrel, inc. ksz8862-16/32mql april 2007 94 m9999-040407-3.0 bit default r/w description 0110 = 2mbps 0111 = 4mbps 1000 = 8mbps 1001 = 16mbps 1010 = 32mbps 1011 = 48mbps 1100 = 64 mbps 1101 = 72mbps 1110 = 80mbps 1111 = 88mbps notes: for 10bt, rate settings above 10mbps ar e set to the default value 0000 (not limited). when multiple queue select enable is off (only 1 queu e per port), rate limiting applies only to priority 0 queue. 3-0 0x0 rw egress pri0 rate egress data rate limit for priority 0 frames. output traffic from this priority queue is shape d according to the egress rate selected below: 0000 = not limited (default) 0001 = 64kbps 0010 = 128kbps 0011 = 256kbps 0100 = 512kbps 0101 = 1mbps 0110 = 2mbps 0111 = 4mbps 1000 = 8mbps 1001 = 16mbps 1010 = 32mbps 1011 = 48mbps 1100 = 64 mbps 1101 = 72mbps 1110 = 80mbps 1111 = 88mbps notes: for 10bt, rate settings above 10mbps ar e set to the default value 0000 (not limited). when multiple queue select enable is off (only 1 queu e per port), rate limiting applies only to priority 0 queue.
micrel, inc. ksz8862-16/32mql april 2007 95 m9999-040407-3.0 bank 49 port 1 phy special control/status, linkmd ? (0x00): p1scslmd bit default r/w description bit is same as: 15 0 ro reserved 14-13 0x0 ro reserved 12 0 rw reserved 11 0 rw force_lnk force link. 1 = force link pass. 0 = normal operation. bank 47 0x02 bit 3 10 1 rw pwrsave power-saving. 1 = disable power saving. 0 = enable power saving. bank 47 0x02 bit 2 9 0 rw remote (near-end) loopback (rlb) 1 = perform remote loopback at port 1's phy (rxp1/rxm1 -> txp1/txm1, see figure 15) 0 = normal operation bank 47 0x02 bit 1 8-0 0x000 ro reserved bank 49 port 1 control register 4 (0x02): p1cr4 this register contains the global per port control for the switch function. bit default r/w description bit is same as: 15 0 rw led off 1 = turn off all of the port 1 leds (p1led3, p1led2, p1led1, p1led0). these pins are driven high if this bit is set to one. 0 = normal operation. bank 45 0x00 bit 0 14 0 rw txids 1 = disable the port?s transmitter. 0 = normal operation. bank 45 0x00 bit1 13 0 rw restart an (note 1) 1 = restart auto-negotiation. 0 = normal operation. bank 45 0x00 bit 9 12 0 rw disable far-end-fault 1 = disable far-end-fault detection and pattern transmission. 0 = enable far end fault detection and pattern transmission. bank 45 0x00 bit 2 11 0 rw power down 1 = power down. 0 = normal operation. bank 45 0x00 bit 11 10 0 rw disable auto mdi/mdi-x 1 = disable auto mdi/mdi-x function. 0 = enable auto mdi/mdi-x function. bank 45 0x00 bit 3 9 0 rw force mdi-x 1= if auto mdi/mdi-x is disabled, force phy into mdi-x mode. 0 = do not force phy into mdi-x mode. bank 45 0x00 bit 4 8 0 rw far-end loopback 1 = perform loopback, as indicated: start: rxp2/rxm2 (port 2). loopback: pmd/pma of port 1?s phy. end: txp2/txm2 (port 2). 0 = normal operation. bank 45 0x00 bit 14 7 1 rw auto negotiation enable (note 1) bank 45 0x00 bit 12
micrel, inc. ksz8862-16/32mql april 2007 96 m9999-040407-3.0 bit default r/w description bit is same as: 1 = auto negotiation is enabled. 0 = disable auto negotiation, speed, and duplex are decided by bits 6 and 5 of the same register. 6 0 rw force speed 1 = force 100bt if an is disabled (bit 7). 0 = force 10bt if an is disabled (bit 7). bank 45 0x00 bit 13 5 0 rw force duplex 1 = force full duplex if (1) an is disabled or (2) an is enabled but failed. 0 = force half duplex if (1) an is disabled or (2) an is enabled but failed. bank 45 0x00 bit 8 4 1 rw advertised flow control capability. 1 = advertise flow control (pause) capability. 0 = suppress flow control (pause) capability from transmission to link partner. bank 45 0x08 bit 10 3 1 rw advertised 100bt full-duplex capability. 1 = advertise 100bt full-duplex capability. 0 = suppress 100bt full-duplex capability from transmission to link partner. bank 45 0x08 bit 8 2 1 rw advertised 100bt half-duplex capability. 1 = advertise 100bt half-duplex capability. 0 = suppress 100bt half-duplex capability from transmission to link partner. bank 45 0x08 bit 7 1 1 rw advertised 10bt fu ll-duplex capability. 1 = advertise 10bt full-duplex capability. 0 = suppress 10bt full-duplex capability from transmission to link partner. bank 45 0x08 bit 6 0 1 rw advertised 10bt half-duplex capability. 1 = advertise 10bt half-duplex capability. 0 = suppress 10bt half-duplex capability from transmission to link partner. bank 45 0x08 bit 5 bank 49 port 1 status register (0x04): p1sr this register contains the global per port status for the switch function. bit default r/w description bit is same as: 15 1 rw hp_mdix 1 = hp auto mdi-x mode. 0 = micrel auto mdi-x mode. bank 45 0x00 bit 5 14 0 ro reserved 13 0 ro polarity reverse 1 = polarity is reversed. 0 = polarity is not reversed. bank 47 0x02 bit 5 12 0 ro receive flow control enable 1 = receive flow control feature is active. 0 = receive flow control feature is inactive. 11 0 ro transmit flow control enable 1 = transmit flow control feature is active. 0 = transmit flow control feature is inactive. 10 0 ro operation speed 1 = link speed is 100mbps. 0 = link speed is 10mbps. 9 0 ro operation duplex 1 = link duplex is full.
micrel, inc. ksz8862-16/32mql april 2007 97 m9999-040407-3.0 bit default r/w description bit is same as: 0 = link duplex is half. 8 0 ro far-end-fault 1 = far-end-fault status detected. 0 = no far-end-fault status detected. bank 45 0x02 bit 4 7 0 ro mdi-x status 1 = mdi. 0 = mdi-x. bank 47 0x02 bit 4 6 0 ro reserved bank 45 0x02 bit 5 5 0 ro link good 1 = link good. 0 = link not good. bank 45 0x02 bit 2 4 0 ro partner flow control capability. 1 = link partner flow control (pause) capable. 0 = link partner not flow control (pause) capable. bank 45 0x0a bit 10 3 0 ro partner 100bt full-duplex capability. 1 = link partner 100bt full-duplex capable. 0 = link partner not 100bt full-duplex capable. bank 45 0x0a bit 8 2 0 ro partner 100bt hal f-duplex capability. 1 = link partner 100bt half-duplex capable. 0= link partner not 100bt half-duplex capable. bank 45 0x0a bit 7 1 0 ro partner 10bt full-duplex capability. 1= link partner 10bt full-duplex capable. 0 = link partner not 10bt full-duplex capable. bank 45 0x0a bit 6 0 0 ro partner 10bt half-duplex capability. 1 = link partner 10bt half-duplex capable. 0 = link partner not 10bt half-duplex capable. bank 45 0x0a bit 5 bank 50 port 2 control register 1 (0x00): p2cr1 this register contains the global per po rt control for the switch function. see description in p1cr1, bank 48 (0x00) bank 50 port 2 control register 2 (0x02): p2cr2 this register contains the global per po rt control for the switch function. see description in p1cr2, bank 48 (0x02) bank 50 port 2 vid control register (0x04): p2vidcr this register contains the global per po rt control for the switch function. see description in p1vidcr, bank 48 (0x04) bank 50 port 2 control register 3 (0x06): p2cr3 this register contains the global per po rt control for the switch function. see description in p1cr3, bank 48 (0x06) bank 50 port 2 ingress rate control register (0x08): p2ircr this register contains per port ingress rate cont rol. see description in p1ircr, bank 48 (0x08) bank 50 port 2 egress rate control register (0x0a): p2ercr this register contains per port egress rate cont rol. see description in p1ercr, bank 48 (0x0a)
micrel, inc. ksz8862-16/32mql april 2007 98 m9999-040407-3.0 bank 51 port 2 phy special control/status, linkmd ? (0x00): p2scslmd bit default r/w description bit is same as: 15 0 ro vct_10m_short 1 = less than 10 meter short. bank 47 0x04 bit 12 14-13 0x0 ro vct_result vct result. [00] = normal condition. [01] = open condition has been detected in the cable. [10] = short condition has been detected in the cable. [11] = cable diagnostic test has failed. bank 47 0x04 bit 14-13 12 0 rw sc vct_en vct enable. 1 = the cable diagnostic test is enable d. it is self-cleared after the vct test is done. 0 = it indicates the cable diagnostic test is completed and the status information is valid for read bank 47 0x04 bit 15 11 0 rw force_lnk force link. 1 = force link pass. 0 = normal operation. bank 47 0x06 bit 3 10 1 rw pwrsave power-saving. 1 = disable power saving. 0 = enable power saving. bank 47 0x06 bit 2 9 0 rw remote (near-end) loopback (rlb) 1 = perform remote loopback at port 2's phy (rxp2/rxm2 -> txp2/txm2, see figure 15) 0 = normal operation bank 47 0x06 bit 1 8-0 0x000 ro vct_fault_count vct fault count. the distance to the fault is ap proximately 0.4m *vct_fault_count. bank 47 0x04 bit 8-0
micrel, inc. ksz8862-16/32mql april 2007 99 m9999-040407-3.0 bank 51 port 2 control register 4 (0x02): p2cr4 this register contains the global per port control for the switch function. bit default r/w description bit is same as: 15 0 rw led off 1 = turn off all of the port 2 leds (p2led3, p2led2, p2led1, p2led0). these pins are driven high if this bit is set to 1. 0 = normal operation. bank 46 0x00 bit 0 14 0 rw txids 1 = disable port?s transmitter. 0 = normal operation. bank 46 0x00 bit 1 13 0 rw restart an 1 = restart auto-negotiation. 0 = normal operation. bank 46 0x00 bit 9 12 0 rw reserved bank 46 0x00 bit 2 11 0 rw power down 1 = power-down. 0 = normal operation. bank 46 0x00 bit 11 10 0 rw disable auto mdi/mdi-x 1= disable auto mdi/mdi-x function. 0= enable auto mdi/mdi-x function. bank 46 0x00 bit 3 9 0 rw force mdi-x 1 = if auto mdi/mdi-x is disabl ed, force phy into mdi-x mode. 0 = do not force phy into mdi-x mode. bank 46 0x00 bit 4 8 0 rw far-end loopback 1 = perform loopback, as indicated (see figure 14): start: rxp1/rxm1 (port 1). loopback: pmd/pma of port 2?s phy. end: txp1/txm1 (port 1). 0 = normal operation. bank 46 0x00 bit 14 7 1 rw auto negotiation enable 0 = disable auto negotiation, speed and duplex are decided by bits 6 and 5 of the same register. 1 = auto negotiation is on. bank 46 0x00 bit 12 6 0 rw force speed 1 = force 100bt if an is disabled (bit 7). 0 = force 10bt if an is disabled (bit 7). bank 46 0x00 bit 13 5 0 rw force duplex 1 = force full duplex if (1) an is disabled or (2) an is enabled but failed. 0 = force half duplex if (1) an is disabled or (2) an is enabled but failed. bank 46 0x00 bit 8 4 1 rw advertised flow control capability. 1 = advertise flow control (pause) capability. 0 = suppress flow control (pause) capability from transmission to the link partner. bank 46 0x08 bit 10 3 1 rw advertised 100bt full-duplex capability. 1 = advertise 100bt full-duplex capability. 0 = suppress 100bt full-duplex capability from transmission to the link partner. bank 46 0x08 bit 8 2 1 rw advertised 100bt half-duplex capability. 1 = advertise 100bt half-duplex capability. 1 = suppress 100bt half-duplex capability from transmission to the link partner. bank 46 0x08 bit 7
micrel, inc. ksz8862-16/32mql april 2007 100 m9999-040407-3.0 bit default r/w description bit is same as: 1 1 rw advertised 10bt fu ll-duplex capability. 1 = advertise 10bt full-duplex capability. 0 = suppress 10bt full-duplex capability from transmission to the link partner. bank 46 0x08 bit 6 0 1 rw advertised 10bt half-duplex capability. 1 = advertise 10bt half-duplex capability. 0 = suppress 10bt half-duplex capability from transmission to the link partner. bank 46 0x08 bit 5 bank 51 port 2 status register (0x04): p2sr this register contains the global per port status for the switch function. bit default r/w description bit is same as: 15 1 rw hp_mdix 1 = hp auto mdi-x mode. 0 = micrel auto mdi-x mode. bank 46 0x00 bit 5 14 0 ro reserved 13 0 ro polarity reverse 1 = polarity is reversed. 0 = polarity is not reversed. bank 47 0x06 bit 5 12 0 ro receive flow control enable 1 = receive flow control feature is active. 0 = receive flow control feature is inactive. 11 0 ro transmit flow control enable 1 = transmit flow control feature is active. 0 = transmit flow control feature is inactive. 10 0 ro operation speed 1 = link speed is 100mbps. 0 = link speed is 10mbps. 9 0 ro operation duplex 1 = link duplex is full. 0 = link duplex is half. 8 0 ro reserved bank 46 0x02 bit 4 7 0 ro mdi-x status 1 = mdi. 0 = mdi-x. bank 47 0x06 bit 4 6 0 ro an done 1 = an done. 0 = an not done. bank 46 0x02 bit 5 5 0 ro link good 1 = link good. 0 = link not good. bank 46 0x02 bit 2 4 0 ro partner flow control capability. 1 = link partner flow control (pause) capable. 0 = link partner not flow control (pause) capable. bank 46 0x0a bit 10 3 0 ro partner 100bt full-duplex capability. 1 = link partner 100bt full-duplex capable. 0 = link partner not 100bt full-duplex capable. bank 46 0x0a bit 8
micrel, inc. ksz8862-16/32mql april 2007 101 m9999-040407-3.0 bit default r/w description bit is same as: 2 0 ro partner 100bt half duplex capability. 1 = link partner 100bt half-duplex capable. 0 = link partner not 100bt half-duplex capable. bank 46 0x0a bit 7 1 0 ro partner 10bt full-duplex capability. 1 = link partner 10bt full-duplex capable. 0 = link partner not 10bt full-duplex capable. bank 46 0x0a bit 6 0 0 ro partner 10bt half-duplex capability. 1 = link partner 10bt half-duplex capable. 0 = link partner not 10bt half-duplex capable. bank 46 0x0a bit 5 bank 52 host port control register 1 (0x00): p3cr1 this register contains the global per po rt control for the switch function. see description in p1cr1, bank 48 (0x00) bank 52 host port control register 2 (0x02): p3cr2 this register contains the global per port control for the switch function. bit default r/w description 15 0 reserved 14 0 rw ingress vlan filtering 1 = the switch discards packets whose vid port membership in vlan table bits [18:16] does not include the ingress port. 0 = no ingress vlan filtering. 13 0 rw discard non pvid packets 1 = the switch discards packets whose vid does not match the ingress port default vid. 0 = no packets are discarded. 12 0 ro reserved 11 0 ro reserved 10 1 rw transmit enable 1 = enable packet transmission on the port. 0 = disable packet transmission on the port. 9 1 rw receive enable 1 = enable packet reception on the port. 0 = disable packet reception on the port. 8 0 rw learning disable 1 = disable switch address learning capability. 0 = enable switch address learning. 7 0 rw sniffer port 1 = port is designated as the sniffer port and transmits packets that are monitored. 0 = port is a normal port. 6 0 rw receive sniff 1 = all packets received on the port are marked as ?monitored packets? and forwarded to the designated ?sniffer port?. 0 = no receive monitoring. 5 0 rw transmit sniff 1 = all packets transmitted on the port are mark ed as ?monitored packets? and forwarded to the designated ?sniffer port?. 0 = no transmit monitoring. 4 0 rw reserved 3 0 rw user priority ceiling 1 = if the packet?s ?user priority field? is greater than the ?user priority field? in the port default tag
micrel, inc. ksz8862-16/32mql april 2007 102 m9999-040407-3.0 bit default r/w description register, replace the packet?s ?user priority field? wi th the ?user priority field? in the port default tag register. 0 = do no compare and replace the packet?s ?user priority field.? 2-0 0x7 rw port vlan membership define the port?s port vlan membership. bit 2 stands for host port, bit 1 for port 2, and bit 0 for port 1. the port can only communicate within the member ship. a ?1? includes a port in the membership; a ?0? excludes a port from the membership. bank 52 host port vid control register (0x04): p3vidcr this register contains the global per po rt control for the switch function. see description in p1vidcr, bank 48 (0x04) bank 52 host port control register 3 (0x06): p3cr3 this register contains the global per po rt control for the switch function. see description in p1cr3, bank 48 (0x06) bank 52 host port ingress rate control register (0x08): p3ircr this register contains per port ingress rate cont rol. see description in p1ircr, bank 48 (0x08) bank 52 host port egress rate control register (0x0a): p3ercr this register contains per port egress rate cont rol. see description in p1ercr, bank 48 (0x0a) banks 53 ? 63: reserved except bank select register (0xe)
micrel, inc. ksz8862-16/32mql april 2007 103 m9999-040407-3.0 mib (management information base) counters the ksz8862m provides 34 mib counters for each port. these c ounters are used to monitor t he port activity for network management. the mib counters are formatted ?per port? as sh own in table 14 and ?all ports dropped packet? as shown in table 16. bit name r/w description default 31 overflow ro 1: counter overflow. 0: no counter overflow. 0 30 count valid ro 1: counter value is valid. 0: counter value is not valid. 0 29-0 counter values ro counter value (read clear) 0x00000000 table 14. format of per port mib counters ?per port? mib counters are read using indirect memory a ccess. the base address offsets and address ranges for both ethernet ports are: port 1, base address is 0x00 and range is from 0x00 to 0x1f. port 2, base address is 0x20 and range is from 0x20 to 0x3f. per port mib counters are read using indirect access control register in iacr, bank 42 (0x00) and indirect access data registers in iadr4[15:0], iadr5[31:16]. table 15 shows the port 1 mib counters address memory offset. offset counter name description 0x0 rxloprioritybyte rx lo-priority (def ault) octet count including bad packets 0x1 rxhiprioritybyte rx hi-priority octet count including bad packets 0x2 rxundersizepkt rx undersize packets w/ good crc 0x3 rxfragments rx fragment packets w/ b ad crc, symbol errors or alignment errors 0x4 rxoversize rx oversize packets w/ good crc (max: 1536 or 1522 bytes) 0x5 rxjabbers rx packets longer than 1522 bytes w/ either crc errors, alignment errors, or symbol errors (depends on max packet size setting) 0x6 rxsymbolerror rx packets w/ invalid data symbol and legal packet size. 0x7 rxcrcerror rx packets within (64,1522) bytes w/ an integral number of bytes and a bad crc (upper limit depends on max packet size setting) 0x8 rxalignmenterror rx packets within (64,1522) bytes w/ a non-integral number of bytes and a bad crc (upper limit depends on max packet size setting) 0x9 rxcontrol8808pkts number of mac control fram es received by a port with 88-08h in ethertype field 0xa rxpausepkts number of pause frames received by a port. pause frame is qualified with ethertype (88-08h), da, control opcode (00-01), data length (64b min), and a valid crc 0xb rxbroadcast rx good broadcast packets (not including error broadcast packets or valid multicast packets) 0xc rxmulticast rx good multicast packets (not including ma c control frames, error multicast packets or valid broadcast packets) 0xd rxunicast rx good unicast packets 0xe rx64octets total rx packets (bad packets included) that were 64 octets in length 0xf rx65to127octets total rx packets (bad packets inc luded) that are between 65 and 127 octets in length 0x10 rx128to255octets total rx packets (bad packets inclu ded) that are between 128 and 255 octets in length 0x11 rx256to511octets total rx packets (bad packets inclu ded) that are between 256 and 511 octets in length 0x12 rx512to1023octets total rx packets (bad packets included) that are between 512 and 1023 octets in length 0x13 rx1024to1522octets total rx packets (bad packets included) that are between 1024 and 1522 octets in
micrel, inc. ksz8862-16/32mql april 2007 104 m9999-040407-3.0 offset counter name description length (upper limit depends on max packet size setting) 0x14 txloprioritybyte tx lo-priority good octet count, including pause packets 0x15 txhiprioritybyte tx hi-priority good octet count, including pause packets 0x16 txlatecollision the number of times a collision is detected later than 512 bit-times into the tx of a packet 0x17 txpausepkts number of pause frames transmitted by a port 0x18 txbroadcastpkts tx good broadcast packets (not incl uding error broadcast or valid multicast packets) 0x19 txmulticastpkts tx good multicast packets (not including error multicast packets or valid broadcast packets) 0x1a txunicastpkts tx good unicast packets 0x1b txdeferred tx packets by a port for which the 1st tx attempt is delayed due to the busy medium 0x1c txtotalcollision tx total collision, half duplex only 0x1d txexcessivecollision a count of frames for which tx fails due to excessive collisions 0x1e txsinglecollision successfully tx frames on a por t for which tx is inhibited by exactly one collision 0x1f txmultiplecollision successfully tx frames on a por t for which tx is inhibited by more than one collision table 15. port 1 mib counters indirect memory offset format of ?all ports dropped packet? mib counters bit default r/w description 30-16 - n/a reserved 15-0 0x0000 ro counter value table 16. ?all ports dropped packet? mib counters format note: ?all ports dropped packet? mib counters do not indicate overflow or validity; therefore, the ap plication must keep track of overflow and valid conditions. ?all ports dropped packet? mib counters are read using indirect memory access. the address offsets for these counters are shown in table 17. offset counter name description 0x100 port1 tx drop packets tx packets dropped due to lack of resources 0x101 port2 tx drop packets tx packets dropped due to lack of resources 0x103 port1 rx drop packets rx packets dropped due to lack of resources 0x104 port2 rx drop packets rx packets dropped due to lack of resources table 17. ?all ports dropped packet? mib counters indirect memory offsets
micrel, inc. ksz8862-16/32mql april 2007 105 m9999-040407-3.0 examples: 1. mib counter read (read port 1 ?rx64octets? counter at indirect address offset 0x0e) write to reg. iacr with 0x1c0e (set indirect address and trigger a read mib counters operation) then read reg. iadr5 (mib counter value 31-16) // if bit 31 = 1, there was a counter overflow // if bi t 30 = 0, restart (reread) from this register read reg. iadr4 (mib counter value 15-0) 2. mib counter read (read port 2 ?rx64octets? counter at indirect address offset 0x2e) write to reg. iacr with 0x1c2e (set indirect address and trigger a read mib counters operation) then read reg. iadr5 (mib counter value 31-16) // if bit 31 = 1, there was a counter overflow // if bi t 30 = 0, restart (reread) from this register read reg. iadr4 (mib counter value 15-0) 3. mib counter read (read ?port1 tx drop pa ckets? counter at indirect address offset 0x100) write to reg. iacr with 0x1d00 (set indirect address and trigger a read mib counters operation) then read reg. iadr4 (mib counter value 15-0) additional mib information per port mib counters are designed as ?read clear?. that is, these counters will be cleared after they are read. all ports dropped packet mib counters are not cleared after they are accessed. the application needs to keep track of overflow and valid co nditions on these counters.
micrel, inc. ksz8862-16/32mql april 2007 106 m9999-040407-3.0 static mac address table the ksz8862m supports both a static and a dynamic mac address table. in response to a destination address (da) look up, the ksz8862m searches both tables to make a packet forwarding decision. in response to a source address (sa) look up, only the dynamic table is searched fo r aging, migration and learning purposes. the static da look up result takes precedence over the dynamic da look up result. if there is a da match in both tables, the result from the static table is used. these entries in the static table will not be aged out by the ksz8862m. bit default value r/w description 57-54 0000 rw fid filter vlan id - identifies one of the 16 active vlans. 53 0 r/w use fid 1: specifies the useof fid+ma c for static table look ups 0: specifies only the use of ma c for static table look ups 52 0 r/w override 1: overrides the port setting ?transmit enable = 0? or ?receive enable = 0? setting. 0: specifies no override 51 0 r/w valid 1: specifies that this entry is vali d, the look up result will be used 0: specifies that this entry is not valid 50-48 000 r/w forwarding ports these 3 bits control the forwarding port(s): 000: no forward 001: forward to port 1 010: forward to port 2 100: forward to port 3 011: forward to port 1 and port 2 110: forward to port 2 and port 3 101: forward to port 1 and port 3 111: broadcasting (excluding the ingress port) 47-0 0 r/w mac address 48 bits mac address table 18. static mac table format (8 entries) static mac table lookup examples: 1. static address table read (read the second entry at indirect address offset 0x01) write to reg. iacr with 0x1001 (set indirect add ress and trigger a read stat ic mac table operation) then read reg. iadr3 (static mac table bits 57-48) read reg. iadr2 (static mac table bits 47-32) read reg. iadr5 (static mac table bits 31-16) read reg. iadr4 (static mac table bits 15-0) 2. static address table write (write the ei ghth entry at indirect address offset 0x07) write to reg. iadr3 (sta tic mac table bits 57-48) write to reg. iadr2 (s tatic mac table bits 47-32) write to reg. iadr5 (sta tic mac table bits 31-16) write to reg. iadr4 (static mac table bits 15-0) write to reg. iacr with 0x0007 (set indirect addre ss and trigger a write static mac table operation)
micrel, inc. ksz8862-16/32mql april 2007 107 m9999-040407-3.0 dynamic mac address table the dynamic mac address is a read only table. bit default value r/w description 71 ro data not ready 1: specifies that the entry is not ready, continue retrying until bit is set to 0 0: specifies that the entry is ready 70-67 ro reserved 66 1 ro mac empty 1: specifies that there is no valid entry in the table 0: specifies that there are valid entries in the table 65-56 0x000 ro no of valid entries indicates how many valid entries in the table 0x3ff means 1 k entries 0x001 means 2 entries 0x000 and bit 66 = 0 means 1 entry 0x000 and bit 66 = 1 means 0 entry 55-54 ro time stamp specifies the 2-bit counter for internal aging. 53-52 00 ro source port identifies the source port where fid+mac is learned: 00: port 1 01: port 2 10: port 3 51-48 0x0 ro fid specifies the filter id. 47-0 0x0000_0000_0000 ro mac address specifies the 48-bit mac address. table 19. dynamic mac address table format (1024 entries) dynamic mac address lookup example: dynamic mac address table read (read the first entry at indirect address offset 0 and retrieve the mac table size) write to reg. iacr with 0x1800 (set indirect add ress and trigger a read dynam ic mac table operation) then read reg. iadr1 (dynamic mac table bits 71-64) // if bit 71 = 1, restart (reread) from this register read reg. iadr3 (dynamic mac table bits 63-48) read reg. iadr2 (dynamic mac table bits 47-32) read reg. iadr5 (dynamic mac table bits 31-16) read reg. iadr4 (dynamic mac table bits 15-0)
micrel, inc. ksz8862-16/32mql april 2007 108 m9999-040407-3.0 vlan table the ksz8862m uses the vlan table to perform look-ups. if 80 2.1q vlan mode is enabled (s gcr2[15]), this table will be used to retrieve the vlan information that is associated wi th the ingress packet. this information includes fid (filter id), vid (vlan id), and vlan membership as described in table 20: bit default value r/w description 19 1 rw valid 1: specifies that this entry is va lid, the look up result will be used 0: specifies that this entry is not valid 18-16 111 r/w membership specifies which ports are members of the vlan. if a da look up fails (no match in both static and dynamic tables ), the packet associated with this vlan will be forwarded to ports specified in this field. for example: 101 means port 3 and 1 are in this vlan. 15-12 0x0 r/w fid specifies the filter id. the ksz8862m su pports 16 active vlans represented by these four bit fields. the fid is the mappe d id. if 802.1q vlan is enabled, the look up will be based on fid+da and fid+sa. 11-0 0x001 r/w vid specifies the ieee 802.1q 12 bits vlan id. table 20. vlan table format (16 entries) if 802.1q vlan mode is enabled, then the ksz 8862m will assign a vid to every ingr ess packet. if the packet is untagged or tagged with a null vid, then the packet is assigned with the default port vid of the ingress port. if the packet is tagged with non null vid, the vid in the tag will be used. the look up process will start from the vlan table look up. if the vid is not valid, the packet will be drop ped and no address learning will take place. if t he vid is valid, the fi d is retrieved. the fid+da and fid+sa lookups are performed. the fid+da look up determines the forwarding ports. if fid+da fails, the packet will be broadcas t to all the members (excluding the ingress port ) of the vlan. if fid+sa fail, the fid+sa will be learned. vlan table lookup examples: examples: 1. vlan table read (read the third entry, at the indirect address offset 0x02) write to reg. iacr with 0x1402 (set indirect address and trigger a read vlan table operation) then read reg. iadr5 (vlan table bits 19-16) read reg. iadr4 (vlan table bits 15-0) 2. vlan table write (write the seventh entry, at the indirect address offset 0x06) write to reg. iadr5 (vlan table bits 19-16) write to reg. iadr4 (vlan table bits 15-0) write to reg. iacr with 0x1406 (set indirect address and trigger a read vlan table operation)
micrel, inc. ksz8862-16/32mql april 2007 109 m9999-040407-3.0 absolute maximum ratings (1) description pins value supply voltage vddatx, vddarx, vddio ?0.5v to 4.0v input voltage all inputs ?0.5v to 5v output voltage all outputs ?0.5v to 4.0v lead temperature (soldering, 10 sec) n/a ? storage temperature (t s ) n/a ?55 c to 150 c table 21. maximum ratings note: 1. exceeding the absolute maximum rating may damage the device. stresses greater than those listed in the table above may caus e permanent damage to the device. operation of the device at these or any other condition s above those specified in the operating secti ons of this specification is not implied. maximum conditions for extended periods may affect reliability. unused inputs must always be tied to an appropri ate logic voltage level. operating ratings (1) parameter symbol min typ max supply voltages vddatx,vddarx vddio 3.1v 3.1v 3.3v 3.3v 3.5v 3.5v ambient operating temperature t a 0 c 70c maximum junction temperature t j 125c thermal resistance junction to ambient (2) ja 37.5 c/w table 22. operating ratings notes: 1. the device is not guaranteed to function outside its operating rating. unused inputs must always be tied to an appropriate l ogic voltage level (ground to v dd ). 2. no (hs) heat spreader in this package. the ja is under air velocity 1 m/s.
micrel, inc. ksz8862-16/32mql april 2007 110 m9999-040407-3.0 electrical characteristics (1) parameter symbol condition min typ max supply current for 100base-sx/fx an d 100base-tx operation (all ports@ full duplex and 100% utilization) 100base-tx /sx/fx (analog core + pll + digital core + transceiver + digital i/o) i ddxio vddatx, vddarx, vddio = 3.3v 153ma supply current for 10base-fl and 10base-t operatio n (all ports@full duplex and 100% utilization) 10base-t/fl (analog core + pll + digital core + transceiver + digital i/o) i ddxio vddatx, vddarx, vddio = 3.3v 97ma ttl inputs input high voltage v ih 2.0v input low voltage v il 0.8v input current i in v in = gnd ~ vddio -10 a 10 a ttl outputs output high voltage v oh i oh = -8 ma 2.4v output low voltage v ol i ol = 8 ma 0.4v output tri-state leakage |i oz | 10 a 100base-tx transmit (measured differentially after 1:1 transformer) peak differential output voltage v o 100 ? termination on the differential output. + 0.95v + 1.05v output voltage imbalance v imb 100 ? termination on the differential output 2% rise/fall time t r /t f 3ns 5ns rise/fall time imbalance 0ns 0.5ns duty cycle distortion + 0.25ns overshoot 5% reference voltage of iset v set 0.5v output jitter peak to peak 0.7ns 1.4ns 10base-t transmit (measured differentially after 1:1 transformer) peak differential output voltage v o 100 ? termination on the differential output 2.4v output jitter peak to peak 1.8ns 3.5ns 10base-fl/100base-sx transmit transmit ouput current on pin txm1 i fo (+/- 5%) vddatx, vddarx, vddio = 3.3v 40ma 60ma 97ma 10base-fl receive on pin rxm1 signal detect assertion threshold v 10fl rms 2.5mv 100base-sx receive on pin rxm1 signal detect assertion threshold v 100sx rms 16mv 10base-t receive squelch threshold v sq 5mhz square wave 400mv note 1: t a = 25c, specification for packaged product only. note 2: port 2?s transformer c onsumes an additional 45ma @ 3.3v for 100base-tx and 70ma @ 3.3v for 10base-t. table 23. electrical characteristics
micrel, inc. ksz8862-16/32mql april 2007 111 m9999-040407-3.0 timing specifications asynchronous timing without using address strobe (adsn = 0) figure 14. asynchronous cycle ? adsn = 0 symbol parameter min typ max unit t1 a1-a15, aen, bexn[3:0] valid to rdn, wrn active 0 ns a1-a15, aen, bexn[3:0] hold after rdn inactive (assume adsn tied low) 0 ns t2 a1-a15, aen, bexn[3:0] hold after wrn inactive (assume adsn tied low) 1 ns t3 read data valid to ardy rising 0.8 ns t4 read data to hold rdn inactive 4 ns t5 write data setup to wrn inactive 4 ns t6 write data hold after wrn inactive 2 ns t7 read active to ardy low 8 ns t8 write inactive to ardy low 8 ns ardy low (wait time) in read cycle (note1) (it is 0ns to read bank select register and 40ns to read qmu data register in turbo mode) (note2) 0 40 ns t9 ardy low (wait time) in read cycle (note1) (it is 0ns to read bank select register and 80ns to read qmu data register in normal mode) 0 80 ns t10 ardy low (wait time) in write cycle (note1) (it is 0ns to write bank select register) (it is 36ns to write qmu data register) 0 50 ns note1: when cpu finished current read or write operat ion, it can do next read or write operation even the ardy is low. during read or write operation if the adry is low, the cpu has to keep the rdn/wrn low until the ardy returns to high. note2: in order to speed up the ardy low time to 40 ns, us er has to use the turbo software driver which is only supported in the a6 device. please refer to the ?ksz88xx programmer's guide? for detail. table 24. asynchronous cycle (adsn = 0) timing parameters t6 t5 t1 t4 t3 t2 valid valid valid a ddr, aen, bexn a dsn read data rdn, wrn write data t7 a rdy (read cycle) a rdy ( write cycle) t 8 t9 t10
micrel, inc. ksz8862-16/32mql april 2007 112 m9999-040407-3.0 asynchronous timing using address strobe (adsn) t2 t7 t5 t4 t3 t1 t6 t8 valid valid valid a ddr, aen, bexn a dsn read data rdn, wrn write data a rdy (read cycle) a rdy ( write cycle) t 9 t10 t11 figure 15. asynchronous cycle ? using adsn symbol parameter min typ max unit t1 a1-a15, aen, bexn[3:0] valid to rdn, wrn active 0 ns t2 read data valid to ardy rising 0.8 ns t3 read data hold to rdn inactive 4 ns t4 write data setup to wrn inactive 4 ns t5 write data hold after wrn inactive 2 ns t6 a1-a15, aen, nbe[3:0] setu p to adsn rising 4 ns t7 read active to ardy low 8 ns t8 a1-a15, aen, bexn[3:0] hold after adsn rising 2 ns t9 write inactive to ardy low 8 ns ardy low (wait time) in read cycle (note1) (it is 0ns to read bank select register and 40ns to read qmu data register in turbo mode) (note2) 0 40 ns t10 ardy low (wait time) in read cycle (note1) (it is 0ns to read bank select register and 80ns to read qmu data register in normal mode) 0 80 ns t11 ardy low (wait time) in write cycle (note1) (it is 0ns to write bank select register) (it is 36ns to write qmu data register) 0 50 ns note1: when cpu finished current read or write operat ion, it can do next read or write operation even the ardy is low. during read or write operation if the adry is low, the cpu has to keep the rdn/wrn low until the ardy returns to high. note2: in order to speed up the ardy low time to 40 ns, us er has to use the turbo software driver which is only supported in the a6 device. please refer to the ?ksz88xx programmer's guide? for detail. table 25. asynchronous cycle using adsn timing parameters
micrel, inc. ksz8862-16/32mql april 2007 113 m9999-040407-3.0 asynchronous timing using datacsn t3 t7 t6 t5 t4 t1 t2 valid valid datacsn read data rdn, wrn write data a rdy (read cycle) a rdy ( write cycle) t 8 t9 t10 figure 16. asynchronous cycle ? using datacsn symbol parameter min typ max unit t1 datacsn setup to rdn, wrn active 2 ns t2 datacsn hold after rdn, wrn inactive (assume adsn tied low) 0 ns t3 read data hold to ardy rising 0.8 ns t4 read data to rdn hold 4 ns t5 write data setup to wrn inactive 4 ns t6 write data hold after wrn inactive 2 ns t7 read active to ardy low 8 ns t8 write inactive to ardy low 8 ns ardy low (wait time) in read cycle (note1) (it is 0ns to read bank select register and 40ns to read qmu data register in turbo mode) (note2) 0 40 ns t9 ardy low (wait time) in read cycle (note1) (it is 0ns to read bank select register and 80ns to read qmu data register in normal mode) 0 80 ns t10 ardy low (wait time) in write cycle (note1) (it is 0ns to write bank select register) (it is 36ns to write qmu data register) 0 50 ns note 1: when cpu finished current read or write operat ion, it can do next read or write operation even the ardy is low. during read or write operation if the adry is low, the cpu has to keep the rdn/wrn low until the ardy returns to high. note2: in order to speed up the ardy low time to 40 ns, us er has to use the turbo software driver which is only supported in the a6 device. please refer to the ?ksz88xx programmer's guide? for detail. table 26. asynchronous cycle using datacsn timing parameters
micrel, inc. ksz8862-16/32mql april 2007 114 m9999-040407-3.0 address latching timing for all modes t3 t2 t1 adsn a ddress, aen, bexn ldevn figure 17. address latching cycle for all modes symbol parameter min typ max unit t1 a1-a15, aen, bexn[3:0] setup to adsn 4 ns t2 a1-a15, aen, bexn[3:0] hold after adsn rising 2 ns t3 a4-a15, aen to ldevn delay 5 ns table 27. address latching timing parameters
micrel, inc. ksz8862-16/32mql april 2007 115 m9999-040407-3.0 synchronous timing in burst write (vlbusn = 1) figure 18. synchronous burst write cycles ? vlbusn = 1 symbol parameter min typ max unit t1 swr setup to bclk falling 4 ns t2 datdcsn setup to bclk rising 4 ns t3 cyclen setup to bclk rising 4 ns t4 write data setup to bclk rising 6 ns t5 write data hold to bclk rising 2 ns t6 rdyrtnn setup to bclk falling 5 ns t7 rdyrtnn hold to bclk falling 3 ns t8 srdyn setup to bclk rising 4 ns t9 srdyn hold to bclk rising 3 ns t10 datacsn hold to bclk rising 2 ns t11 swr hold to bclk falling 2 ns t12 cyclen hold to bclk rising 2 ns table 28. synchronous burst write timing parameters
micrel, inc. ksz8862-16/32mql april 2007 116 m9999-040407-3.0 synchronous timing in burst read (vlbusn = 1) t9 t8 t7 t6 t5 t4 t3 t1 t2 data0 data1 data2 data3 bclk datacsn swr cyclen read data rdyrtnn srdyn t11 t10 t12 figure 19. synchronous burst read cycles ? vlbusn = 1 symbol parameter min typ max unit t1 swr setup to bclk falling 4 ns t2 datdcsn setup to bclk rising 4 ns t3 cyclen setup to bclk rising 4 ns t4 read data setup to bclk rising 6 ns t5 read data hold to bclk rising 2 ns t6 rdyrtnn setup to bclk falling 5 ns t7 rdyrtnn hold to bclk falling 3 ns t8 srdyn setup to bclk rising 4 ns t9 srdyn hold to bclk rising 3 ns t10 datacsn hold to bclk rising 2 ns t11 swr hold to bclk falling 2 ns t12 cyclen hold to bclk rising 2 ns table 29. synchronous burs t read timing parameters
micrel, inc. ksz8862-16/32mql april 2007 117 m9999-040407-3.0 synchronous write timing (vlbusn = 0) t12 t11 t10 t9 t8 t7 t4 t3 t6 t5 t1 t2 valid valid bclk a ddress, aen, bexn adsn swr cyclen write data srdyn rdyrtnn figure 20. synchronous write cycle ? vlbusn = 0 symbol parameter min typ max unit t1 a1-a15, aen, bexn[3:0] setup to adsn rising 4 ns t2 a1-a15, aen, bexn[3:0] hold after adsn rising 2 ns t3 cyclen setup to bclk rising 4 ns t4 cyclen hold after bclk rising (non-burst mode) 2 ns t5 swr setup to bclk 4 ns t6 swr hold after bclk rising with srdyn active 0 ns t7 write data setup to bclk rising 5 ns t8 write data hold from bclk rising 1 ns t9 srdyn setup to bclk 8 ns t10 srdyn hold to bclk 1 ns t11 rdyrtnn setup to bclk 4 ns t12 rdyrtnn hold to bclk 1 ns table 30. synchronous write (vlbusn = 0) timing parameters
micrel, inc. ksz8862-16/32mql april 2007 118 m9999-040407-3.0 synchronous read timing (vlbusn = 0) t11 t10 t9 t8 t6 t7 t4 t3 t5 t1 t2 valid valid bclk a ddress, aen, bexn adsn swr cyclen read data srdyn rdyrtnn figure 21. synchronous read cycle ? vlbusn = 0 symbol parameter min typ max unit t1 a1-a15, aen, bexn[3:0] setup to adsn rising 4 ns t2 a1-a15, aen, bexn[3:0] hold after adsn rising 2 ns t3 cyclen setup to bclk rising 4 ns t4 cyclen hold after bclk rising (non-burst mode) 2 ns t5 swr setup to bclk 4 ns t6 read data hold from bclk rising 1 ns t7 read data setup to bclk 8 ns t8 srdyn setup to bclk 8 ns t9 srdyn hold to bclk 1 ns t10 rdyrtnn setup to bclk rising 4 ns t11 rdyrtnn hold after bclk rising 1 ns table 31. synchronous read (vlbusn = 0) timing parameters
micrel, inc. ksz8862-16/32mql april 2007 119 m9999-040407-3.0 eeprom timing eesk eecs eedi eedo high-z d15 d14 d13 d1 d0 an a0 0 11 1 *1 *1 start bit tcyc ts th figure 22. eeprom read cycle timing diagram timing parameter description min typ max unit tcyc clock cycle 4 (obcr[1:0]=11 on-chip bus speed @ 25 mhz) or 0.8 (obcr[1:0]=00 on-chip bus speed @ 125 mhz) s ts setup time 20 ns th hold time 20 ns table 32. eeprom timing parameters
micrel, inc. ksz8862-16/32mql april 2007 120 m9999-040407-3.0 auto negotiation timing figure 23. auto-negotiation timing timing parameter description min typ max unit t btb flp burst to flp burst 8 16 24 ms t flpw flp burst width 2 ms t pw clock/data pulse width 100 ns t ctd clock pulse to data pulse 55.5 64 69.5 s t ctc clock pulse to clock pulse 111 128 139 s number of clock/data pulses per burst 17 33 table 33. auto negotiation timing parameters
micrel, inc. ksz8862-16/32mql april 2007 121 m9999-040407-3.0 reset timing as long as the stable supply voltages to reset high timing (minimum of 10ms) are met, there is no power-sequencing requirement for the ksz8862m supply voltage (3.3v). the reset timing requirement is summarized in the figure 26 and table 34. figure 24. reset timing symbol parameter min max unit t sr stable supply voltages to reset high 10 ms table 34. reset timing parameters
micrel, inc. ksz8862-16/32mql april 2007 122 m9999-040407-3.0 selection of isolation transformers a 1:1 isolation transformer is required at the line interface. an isolation transformer with integrated common-mode choke is recommended to exceed fcc requirements. table 35 gives recommended tran sformer characteristics. parameter value test condition turns ratio 1 ct : 1 ct open-circuit inductance (min) 350 h 100mv, 100khz, 8ma leakage inductance (max) 0.4 h 1mhz (min) inter-winding capacitance (max) 12pf d.c. resistance (max) 0.9 ? insertion loss (max) 1.0db 0mhz ? 65mhz hipot (min) 1500vrms table 35. transformer selection criteria magnetic manufacturer part number auto mdi-x number of port pulse h1102 yes 1 pulse (low cost) h1260 yes 1 transpower hb726 yes 1 bel fuse s558-5999-u7 yes 1 delta lf8505 yes 1 lankom lf-h41s yes 1 table 36. qualified single port magnetic selection of reference crystal chacteristics value units frequency 25 mhz frequency tolerance (max) 50 ppm load capacitance (max) 20 pf series resistance 25 ? table 37. typical reference crystal characteristics
micrel, inc. ksz8862-16/32mql april 2007 123 m9999-040407-3.0 package information figure 25. 128-pin pqfp package
micrel, inc. ksz8862-16/32mql april 2007 124 m9999-040407-3.0 acronyms and glossary biu bus interface unit the host interface functi on that performs code conversion, buffering, and the like required for communications to and from a network. bpdu bridge protocol data unit a packet containing ports, addresses, etc. to make sure data being passed through a bridged network arrives at its proper destination. cmos complementary metal oxide semiconductor a common semiconductor manufacturing technique in which positive and negative types of transistors are combined to form a current gate that in turn forms an effective means of controlling electrical current through a chip. crc cyclic redundancy check a common technique for detecting data transmission errors . crc for ethernet is 32 bits long. cut-through switch a switch typically processes received packets by reading in the full packet (storing), then processing the packet to determine where it needs to go, then forwarding it. a cut-through switch simply reads in the first bit of an incoming packet and forwards the packet. cut-through switches do not store the packet. da destination address the address to send packets. dma direct memory access a design in which memory on a chip is controlled independently of the cpu. eeprom electronically erasable programmable read-only memory a design in which memory on a chip can be erased by exposing it to an electrical charge. eisa extended industry standard architecture a bus architectu re designed for pcs using 80x86 processors, or an intel 80386, 80486 or pentium microprocessor. eisa buses are 32 bits wide and support multiprocessing. emi electro-magnetic interference a naturally occurring phenomena when the electromagnetic field of one device disrupts, impedes or degrades the electromagnetic field of another device by coming into proximity with it. in computer technology, computer devices are susceptible to emi because electromagnetic fields are a byproduct of passing electricity through a wire. data lines that have not been properly shielded are susceptible to data corruption by emi. fcs frame check sequence see crc. fid frame or filter id specifies the frame ident ifier. alternately is the filter identifier. igmp internet group management protocol the protocol defined by rfc 1112 for ip multicast transmissions. ipg inter-packet gap a time delay between successive data packets mandated by the network standard for protocol reasons. in ethernet, the medium has to be "silent" (i.e., no data transfer) for a short period of time before a node can consider the network idle and start to transmit. ipg is used to correct timing differences between a transmitter and receiver. during the ipg, no data is transferred, and information in the gap can be discarded or additions inserted without impact on data integrity. isi inter-symbol interference t he disruption of transmitted code caused by adjacent pulses affecting or interfering with each other. isa industry standard architecture a bus ar chitecture used in the ibm pc/xt and pc/at. jumbo packet a packet larger than the standard ethernet packet (1500 bytes). large packet sizes allow for more efficient use of bandwidth, lower overhead, less processing, etc. mdi medium dependent interface an ethernet port connecti on that allows network hubs or switches to connect to other hubs or switches without a null-modem, or crossover, cable. mdi provides the standard interface to a particular media (copper or fiber) and is ther efore 'media dependent.'
micrel, inc. ksz8862-16/32mql april 2007 125 m9999-040407-3.0 mdi-x medium dependent interface crossover an ethernet port connection that allows networked end stations (i.e., pcs or workstations) to connect to each other using a null-modem, or crossover, cable. for 10/100 full-duplex networks, an end point (such as a computer) and a switch are wired so that each transmitter connects to the far end receiver. when connecting two computers together, a cable that crosses the tx and rx is required to do this. with auto mdi-x, the phy senses the correct tx and rx roles, eliminating any cable confusion. mib management information base the mib comprises t he management portion of network devices. this can include things like monitoring traffic levels and faults (statistical), and can also change operating parameters in network nodes (static forwarding addresses). mii media independent interface the mii accesses phy registers as defined in the ieee 802.3 specification. nic network interface card an expansion board inserted into a computer to allow it to be connected to a network. most nics are designed for a particular type of network, protocol, and media, although some can serve multiple networks. npvid non port vlan id the port vlan id value is used as a vlan reference. pll phase-locked loop an electronic circuit that c ontrols an oscillator so that it maintains a constant phase angle (i.e., lock) on the frequency of an input, or reference, signal. a pll ensures that a communication signal is locked on a specific frequency and can also be used to generate, modulate, and demodulate a signal and divide a frequency. pme power management event an occurrence that a ffects the directing of power to different components of a system. qmu queue management unit manages packet traffi c between mac/phy interface and the system host. the qmu has built-in packet memories for receive and transmit functions called txq (transmit queue) and rxq (receive queue). sa source address the address from which information has been sent. tdr time domain reflectometry tdr is used to pinpoint flaws and problems in underground and aerial wire, cabling, and fiber optics. they send a signal down the conductor and measure the time it takes for the signal -- or part of the signal -- to return. utp unshielded twisted pair commonly a cable containing 4 twisted pairs of wires. the wires are twisted in such a manner as to cancel electrical interference generated in each wire, therefore shielding is not required. vlan virtual local area network a configuration of comput ers that acts as if a ll computers are connected by the same physical network but which may be located virtually anywhere. micrel, inc. 2180 fortune drive san jose, ca 95131 usa tel +1 (408) 944-0800 fax +1 (408) 474-1000 web http://www.micrel.com the information furnished by micrel in this data sheet is believed to be accurate and reliable. however, no responsibility is a ssumed by micrel for its use. micrel reserves the right to change ci rcuitry and specifications at any time without notification to the customer. micrel products are not designed or authori zed for use as components in life support app liances, devices or systems where malfu nction of a product can reasonably be expected to result in personal injury. life support devices or systems are devices or systems that (a) are intend ed for surgical implant into the body or (b) support or sustain life, and whose failure to per form can be reasonably expected to result in a significant inj ury to the user. a purchaser?s use or sale of micrel products for use in life support appliances, devices or system s is a purchaser?s own risk and purchaser a grees to fully indemnify micrel for any damages resulting from such use or sale. ? 2006 micrel, incor p orated.


▲Up To Search▲   

 
Price & Availability of KSZ8862-32MQL-SX

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X